summaryrefslogtreecommitdiff
path: root/testing/xz
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-22 22:46:00 +0000
committerroot <root@rshg047.dnsready.net>2011-05-22 22:46:00 +0000
commit3837a11a2a471b9db222d8eb6ed7d2fb9d1778c6 (patch)
treeb16474ab1e00c05c11f602c89c6ea093f8d8f0d7 /testing/xz
parent0fdfc2325867395ad4262d06b2d89955ac3cf6a4 (diff)
Sun May 22 22:46:00 UTC 2011
Diffstat (limited to 'testing/xz')
-rw-r--r--testing/xz/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/xz/PKGBUILD b/testing/xz/PKGBUILD
new file mode 100644
index 000000000..e2c47b128
--- /dev/null
+++ b/testing/xz/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 124452 2011-05-21 17:48:29Z pierre $
+# Maintainer: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: François Charette <firmicus@gmx.net>
+
+pkgname=xz
+pkgver=5.0.3
+pkgrel=1
+pkgdesc='Library and command line tools for XZ and LZMA compressed files'
+arch=('i686' 'x86_64')
+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.gz")
+md5sums=('fefe52f9ecd521de2a8ce38c21a27574')
+
+# 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
+}