sbcl 2.1.11 rebuild
[arch-packages.git] / xz / trunk / PKGBUILD
blob41f2431228399f540296b566a7f7536d7e427ed3
1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: François Charette <firmicus@gmx.net>
4 pkgname=xz
5 pkgver=5.2.5
6 pkgrel=2
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 source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
13 sha256sums=('f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10'
14             'SKIP')
15 validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620')
17 build() {
18         cd "${srcdir}/${pkgname}-${pkgver}"
20         export CFLAGS="$CFLAGS -Wno-format-truncation"
21         ./configure --prefix=/usr \
22                 --disable-rpath \
23                 --enable-werror
24         make
27 check() {
28         cd "${srcdir}/${pkgname}-${pkgver}"
29         make check
32 package() {
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"