upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / xz / trunk / PKGBUILD
blob563c769cbc980d28c012a867b83e479c675350c7
1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: François Charette <firmicus@gmx.net>
4 pkgname=xz
5 pkgver=5.4.2
6 pkgrel=1
7 pkgdesc='Library and command line tools for XZ and LZMA compressed files'
8 arch=('x86_64')
9 url='https://tukaani.org/xz/'
10 license=('GPL' 'LGPL' 'custom')
11 depends=('sh')
12 provides=('liblzma.so')
13 validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
14 source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
15 sha256sums=('87947679abcf77cc509d8d1b474218fd16b72281e2797360e909deaee1ac9d05'
16             'SKIP')
17 sha512sums=('149f980338bea3d66de1ff5994b2b236ae1773135eda68b62b009df0c9dcdf5467f8cb2c06da95a71b6556d60bd3d21f475feced34d5dfdb80ee95416a2f9737'
18             'SKIP')
20 build() {
21   cd "${srcdir}/${pkgname}-${pkgver}"
23   ./configure \
24     --prefix=/usr \
25     --disable-rpath \
26     --enable-werror
27   make
30 check() {
31   cd "${srcdir}/${pkgname}-${pkgver}"
33   make check
36 package() {
37   cd "${srcdir}/${pkgname}-${pkgver}"
39   make DESTDIR="${pkgdir}" install
41   install -d -m0755 "${pkgdir}/usr/share/licenses/xz/"
42   ln -sf /usr/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
43   ln -sf /usr/share/licenses/common/GPL2/license.txt "${pkgdir}/usr/share/doc/xz/COPYING.GPLv2"