[arch-commits] Commit in lz4/repos (3 files)

Sébastien Luttringer seblu at archlinux.org
Sat May 22 22:16:37 UTC 2021


    Date: Saturday, May 22, 2021 @ 22:16:36
  Author: seblu
Revision: 415865

db-move: moved lz4 from [testing] to [core] (x86_64)

Added:
  lz4/repos/core-x86_64/PKGBUILD
    (from rev 415864, lz4/repos/testing-x86_64/PKGBUILD)
Deleted:
  lz4/repos/core-x86_64/PKGBUILD
  lz4/repos/testing-x86_64/

----------------------+
 /PKGBUILD            |   53 +++++++++++++++++++++++++++++++++++++++++++++++++
 core-x86_64/PKGBUILD |   38 -----------------------------------
 2 files changed, 53 insertions(+), 38 deletions(-)

Deleted: core-x86_64/PKGBUILD
===================================================================
--- core-x86_64/PKGBUILD	2021-05-22 21:30:27 UTC (rev 415864)
+++ core-x86_64/PKGBUILD	2021-05-22 22:16:36 UTC (rev 415865)
@@ -1,38 +0,0 @@
-# Maintainer: Sébastien Luttringer
-
-pkgname=lz4
-epoch=1
-pkgver=1.9.3
-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
-  make install PREFIX=/usr DESTDIR="$pkgdir"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: lz4/repos/core-x86_64/PKGBUILD (from rev 415864, lz4/repos/testing-x86_64/PKGBUILD)
===================================================================
--- core-x86_64/PKGBUILD	                        (rev 0)
+++ core-x86_64/PKGBUILD	2021-05-22 22:16:36 UTC (rev 415865)
@@ -0,0 +1,53 @@
+# Maintainer: Sébastien Luttringer
+
+pkgname=lz4
+epoch=1
+pkgver=1.9.3
+pkgrel=2
+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"
+        'https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7.patch')
+sha256sums=('SKIP'
+            'a9109fac17ee72ed3ec86f2cd5e8c4a0f34a548213a3d3c89861d6b2a6bd2871')
+
+prepare() {
+  cd $pkgname
+  # apply patch from the source array (should be a pacman feature)
+  local src
+  for src in "${source[@]}"; do
+    src="${src%%::*}"
+    src="${src##*/}"
+    [[ $src = *.patch ]] || continue
+    msg2 "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
+}
+
+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
+  make install PREFIX=/usr DESTDIR="$pkgdir"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list