void-packages/srcpkgs/xz/template
2015-08-18 12:30:46 +02:00

36 lines
838 B
Bash

# Template file for 'xz'
pkgname=xz
version=5.2.1
revision=4
bootstrap=yes
build_pie=yes
build_style=gnu-configure
short_desc="The XZ compression utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Public domain, GPL-2, GPL-3, LGPL-2.1"
homepage="http://tukaani.org/xz"
distfiles="http://tukaani.org/xz/xz-${version}.tar.bz2"
checksum=679148f497e0bff2c1adce42dee5a23f746e71321c33ebb0f641a302e30c2a80
CFLAGS="-fPIC"
post_install() {
rm -r ${DESTDIR}/usr/share/doc
}
liblzma_package() {
short_desc="XZ-format compression library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
liblzma-devel_package() {
depends="liblzma>=${version}_${revision}"
short_desc="XZ-format compression library - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}