# $Id: PKGBUILD 117397 2011-04-01 14:53:10Z pierre $ # Maintainer: Pierre Schmitz # Contributor: François Charette pkgname=xz pkgver=5.0.2 pkgrel=1 pkgdesc='Library and command line tools for XZ and LZMA compressed files' arch=('i686' 'x86_64' 'mips64el') url='http://tukaani.org/xz/' license=('GPL' 'LGPL' 'custom') depends=('sh') provides=('lzma' 'lzma-utils' 'xz-utils') replaces=('lzma' 'lzma-utils' 'xz-utils') conflicts=('lzma' 'lzma-utils' 'xz-utils') options=('!libtool') source=("http://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.xz") md5sums=('870d0e6fec3b710903371defb48a2fad') # keep an upgrade path for older installations PKGEXT='.pkg.tar.gz' build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr \ --disable-rpath \ --enable-werror make } check() { cd ${srcdir}/${pkgname}-${pkgver} make check } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -d -m755 ${pkgdir}/usr/share/licenses/xz/ ln -sf /usr/share/doc/xz/COPYING ${pkgdir}/usr/share/licenses/xz/ ln -sf /usr/share/licenses/common/GPL2/license.txt ${pkgdir}/usr/share/doc/xz/COPYING.GPLv2 }