1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: François Charette <firmicus@gmx.net>
7 pkgdesc='Library and command line tools for XZ and LZMA compressed files'
9 url='https://tukaani.org/xz/'
10 license=('GPL' 'LGPL' 'custom')
12 source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
13 sha256sums=('f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10'
15 validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620')
18 cd "${srcdir}/${pkgname}-${pkgver}"
20 export CFLAGS="$CFLAGS -Wno-format-truncation"
21 ./configure --prefix=/usr \
28 cd "${srcdir}/${pkgname}-${pkgver}"
33 cd "${srcdir}/${pkgname}-${pkgver}"
34 make DESTDIR="${pkgdir}" install
35 install -d -m755 "${pkgdir}/usr/share/licenses/xz/"
36 ln -sf /usr/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
37 ln -sf /usr/share/licenses/common/GPL2/license.txt "${pkgdir}/usr/share/doc/xz/COPYING.GPLv2"