[arch-commits] Commit in lz4/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Sébastien Luttringer seblu at archlinux.org
Sat Feb 3 13:19:59 UTC 2018


    Date: Saturday, February 3, 2018 @ 13:19:57
  Author: seblu
Revision: 315791

archrelease: copy trunk to testing-x86_64

Added:
  lz4/repos/testing-x86_64/
  lz4/repos/testing-x86_64/PKGBUILD
    (from rev 315790, lz4/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: lz4/repos/testing-x86_64/PKGBUILD (from rev 315790, lz4/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-02-03 13:19:57 UTC (rev 315791)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+
+pkgname=lz4
+epoch=1
+pkgver=1.8.1.2
+pkgrel=1
+pkgdesc='Extremely fast compression algorithm'
+arch=('x86_64')
+url='http://www.lz4.org/'
+license=('GPL2')
+makedepends=('git')
+checkdepends=('diffutils')
+depends=('glibc')
+source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+build() {
+  # do not use the main makefile, it calls sub make with -e
+  # exported CLFAGS by makepkg break the version. see FS#50071
+  cd $pkgname
+  make -C lib PREFIX=/usr
+  make -C programs PREFIX=/usr lz4 lz4c
+}
+
+check() {
+  rm -f passwd.lz4
+  $pkgname/programs/lz4 /etc/passwd passwd.lz4
+  $pkgname/programs/lz4 -d passwd.lz4 passwd
+  diff -q /etc/passwd passwd
+  rm passwd
+}
+
+package() {
+  cd $pkgname
+  # mandir is broken since 1.8.0
+  make install PREFIX=/usr MANDIR=/usr/share/man/man1 DESTDIR="$pkgdir"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list