jobcore/xz/PKGBUILD-arch

50 lines
1.2 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
# Contributor: François Charette <firmicus@gmx.net>
pkgname=xz
2024-05-30 06:45:15 +02:00
pkgver=5.6.2
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')
2024-03-29 14:28:38 +01:00
makedepends=('git' 'po4a' 'doxygen')
2022-10-01 12:50:56 +02:00
provides=('liblzma.so')
2024-04-02 03:46:40 +02:00
validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
source=("git+https://git.tukaani.org/xz.git#tag=v${pkgver}")
2024-05-30 06:45:15 +02:00
sha256sums=('a71fcf56faa1f7d9e9708ca8d6a97906b929307d6a98d220018852eef37853c8')
sha512sums=('f369f126dd3d538ef27ecce62e8ae01a2c9056eeb22c6b21d9a1d5e456f35330bc7f2bb0df525ad4a4f95ba84c0196c7c79ad768359786d3a73f876aa043f164')
2024-03-29 14:28:38 +01:00
prepare() {
cd ${pkgname}
./autogen.sh
}
2022-03-20 13:19:37 +01:00
build() {
2024-03-29 14:28:38 +01:00
cd ${pkgname}
2022-03-20 13:19:37 +01:00
2022-10-01 12:50:56 +02:00
./configure \
--prefix=/usr \
--disable-rpath \
2024-05-30 06:45:15 +02:00
--enable-doxygen \
2022-10-01 12:50:56 +02:00
--enable-werror
make
2022-03-20 13:19:37 +01:00
}
check() {
2024-03-29 14:28:38 +01:00
cd ${pkgname}
2022-10-01 12:50:56 +02:00
make check
2022-03-20 13:19:37 +01:00
}
package() {
2024-03-29 14:28:38 +01:00
cd ${pkgname}
2022-10-01 12:50:56 +02:00
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
}