# Template file for 'lrzip'
pkgname=lrzip
version=0.621
revision=2
build_style="gnu-configure"
hostmakedepends="perl automake libtool"
makedepends="zlib-devel bzip2-devel lzo-devel"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://lrzip.kolivas.org/"
license="GPL-2"
short_desc="Multi-threaded compression using the rzip/lzma, lzo, and zpaq algorithms"
distfiles="https://github.com/ckolivas/lrzip/archive/v${version}.tar.gz"
checksum=4bf93c1df076b6e6a57f32c0c4b7790b4d25d724c259394e1d32b680c0657121

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

lrzip-devel_package() {
	short_desc+=" - development files"
	depends="liblrzip-${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
liblrzip_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}
