# Template file for 'lz4'
pkgname=lz4
reverts="131_1 130_1 129_1 128_1 127_1 126_1 125_1 124_1 123_1 122_1"
version=1.9.3
revision=1
bootstrap=yes
build_style=gnu-makefile
make_check_target=test
checkdepends="python3"
short_desc="LZ4 compression utilities"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-2-Clause, GPL-2.0-or-later"
homepage="https://lz4.github.io/lz4"
changelog="https://raw.githubusercontent.com/lz4/lz4/dev/NEWS"
distfiles="https://github.com/lz4/lz4/archive/v${version}.tar.gz"
checksum=030644df4611007ff7dc962d981f390361e6c97a34e5cbc393ddfbe019ffe2c1

post_install() {
	vlicense lib/LICENSE
}

liblz4_package() {
	short_desc="LZ4 compression library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

liblz4-devel_package() {
	short_desc="LZ4 compression library - development files"
	depends="liblz4-${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
