2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
# Contributor: François Charette <firmicus@gmx.net>
|
|
|
|
|
|
|
|
pkgname=xz
|
2022-08-14 19:10:38 +02:00
|
|
|
pkgver=5.2.6
|
|
|
|
pkgrel=1
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://tukaani.org/xz/'
|
|
|
|
license=('GPL' 'LGPL' 'custom')
|
|
|
|
depends=('sh')
|
2022-08-14 19:10:38 +02:00
|
|
|
source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
|
|
|
sha256sums=('a2105abee17bcd2ebd15ced31b4f5eda6e17efd6b10f921a01cda4a44c91b3a0'
|
2022-03-20 13:19:37 +01:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
export CFLAGS="$CFLAGS -Wno-format-truncation"
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-werror
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -d -m755 "${pkgdir}/usr/share/licenses/xz/"
|
|
|
|
ln -sf /usr/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
|
|
|
|
ln -sf /usr/share/licenses/common/GPL2/license.txt "${pkgdir}/usr/share/doc/xz/COPYING.GPLv2"
|
|
|
|
}
|