new: sys/xz-5.6.2

This commit is contained in:
Yingjie Wang 2024-11-13 00:38:41 -05:00
parent 0ef4a4b606
commit 3f026bb652

29
sys/xz-5.6.2.PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
pkgname="xz"
pkgver="5.6.2"
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
homepage="https://tukaani.org/xz"
license=('GPL' 'LGPL' 'custom')
sources=("xz-5.6.2.tar.xz")
urls=("https://github.com//tukaani-project/xz/releases/download/v5.6.2/xz-5.6.2.tar.xz")
md5sums=("bbf73fb28425cebb854328599f85c4cf")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/xz-5.6.2 &&
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="${pkgdir}" install
install -d -m0755 "${pkgdir}/usr/share/licenses/xz/"
ln -sf ../../doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
}