Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/xz/PKGBUILD48
1 files changed, 47 insertions, 1 deletions
diff --git a/core/xz/PKGBUILD b/core/xz/PKGBUILD
index 2cdd7ee8..4d69ab77 100644
--- a/core/xz/PKGBUILD
+++ b/core/xz/PKGBUILD
@@ -1 +1,47 @@
-eval "$(declare -f build | sed 's| --enable-werror||')"
+# Maintainer: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: François Charette <firmicus@gmx.net>
+
+pkgname=xz
+pkgver=5.6.1
+pkgrel=2
+pkgdesc='Library and command line tools for XZ and LZMA compressed files'
+arch=('x86_64')
+url='https://xz.tukaani.org/xz-utils/'
+license=('GPL' 'LGPL' 'custom')
+depends=('sh')
+makedepends=('git' 'po4a' 'doxygen')
+provides=('liblzma.so')
+validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') # Lasse Collin <lasse.collin@tukaani.org>
+source=("git+https://git.tukaani.org/xz.git#tag=v${pkgver}")
+sha256sums=('e10fa4254d5ff033c78dcbfd2866e79a762b8a719503a7c146758e590de945dc')
+sha512sums=('8f4ee2e5c9b46d0917d8bdf8b172a70d02a6cf2d4d78a2e99ae942e32979b72b407809ffda2885af41e2c9d801c19eab5e4fd73888fbaf042346be957df406fc')
+
+prepare() {
+ cd ${pkgname}
+
+ ./autogen.sh --no-po4a --no-doxygen
+}
+
+build() {
+ cd ${pkgname}
+
+ ./configure \
+ --prefix=/usr \
+ --disable-rpath
+ make
+}
+
+check() {
+ cd ${pkgname}
+
+ make check
+}
+
+package() {
+ cd ${pkgname}
+
+ make DESTDIR="${pkgdir}" install
+
+ install -d -m0755 "${pkgdir}/usr/share/licenses/xz/"
+ ln -sf /usr/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
+}