# Template file for 'mtr'
pkgname=lrzip
version=0.616
revision=1
distfiles="http://ck.kolivas.org/apps/lrzip/lrzip-${version}.tar.bz2"
checksum="982d5a8db4d8bbbced6e33fbbcd589c9b3fc4275110155d7bd71cbeff4a235ae"
build_style=gnu-configure
hostmakedepends="perl"
makedepends="zlib-devel bzip2-devel lzo-devel"
maintainer="Steven R <strob AT styez DOT com>"
homepage="http://lrzip.kolivas.org/"
license="GPL"
short_desc="Multi-threaded compression using the rzip/lzma, lzo, and zpaq algorithms"

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.*"
	}
}

lrzip_package() {
	pkg_install() {
		vmove all
	}
}