2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
# Contributor: François Charette <firmicus@gmx.net>
|
|
|
|
|
|
|
|
pkgname=xz
|
2024-03-14 19:11:55 +01:00
|
|
|
pkgver=5.6.1
|
2022-08-14 19:10:38 +02:00
|
|
|
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')
|
2024-01-27 00:50:07 +01:00
|
|
|
url='https://xz.tukaani.org/xz-utils/'
|
2022-03-20 13:19:37 +01:00
|
|
|
license=('GPL' 'LGPL' 'custom')
|
|
|
|
depends=('sh')
|
2022-10-01 12:50:56 +02:00
|
|
|
provides=('liblzma.so')
|
2023-05-05 16:18:25 +02:00
|
|
|
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620' # Lasse Collin <lasse.collin@tukaani.org>
|
|
|
|
'22D465F2B4C173803B20C6DE59FCF207FEA7F445') # Jia Tan <jiat0218@gmail.com>
|
2024-01-27 00:50:07 +01:00
|
|
|
source=("https://github.com/tukaani-project/xz/releases/download/v${pkgver}/xz-${pkgver}.tar.gz"{,.sig})
|
2024-03-14 19:11:55 +01:00
|
|
|
sha256sums=('2398f4a8e53345325f44bdd9f0cc7401bd9025d736c6d43b372f4dea77bf75b8'
|
2022-10-01 12:50:56 +02:00
|
|
|
'SKIP')
|
2024-03-14 19:11:55 +01:00
|
|
|
sha512sums=('8af100eb83288f032e4813be2bf8de7d733c8761f77f078776c1391709241ad8fe3192d107664786e2543677915c5eeb3fe7add5c53b48b50c10a9de7c9f4fda'
|
2022-03-20 13:19:37 +01:00
|
|
|
'SKIP')
|
|
|
|
|
|
|
|
build() {
|
2022-10-01 12:50:56 +02:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2022-10-01 12:50:56 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-werror
|
|
|
|
make
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-10-01 12:50:56 +02:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make check
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-10-01 12:50:56 +02:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -d -m0755 "${pkgdir}/usr/share/licenses/xz/"
|
|
|
|
ln -sf /usr/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|