void-packages/srcpkgs/xz/template

42 lines
1.0 KiB
Bash

# Template file for 'xz'
pkgname=xz
version=5.6.0
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="--disable-doc"
short_desc="XZ compression utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="0BSD, GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
homepage="https://xz.tukaani.org"
changelog="https://git.tukaani.org/?p=xz.git;a=blob_plain;f=NEWS"
distfiles="https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.gz"
checksum=0f5c81f14171b74fcc9777d302304d964e63ffc2d7b634ef023a7249d9b5d875
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" --disable-sandbox"
fi
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
}
}
post_install() {
vlicense COPYING
vlicense COPYING.0BSD
}