[arch-commits] Commit in libgcrypt15/trunk (PKGBUILD)

Maxime Gauduin alucryd at gemini.archlinux.org
Wed Jan 19 10:27:46 UTC 2022


    Date: Wednesday, January 19, 2022 @ 10:27:46
  Author: alucryd
Revision: 1110460

FS#72012: libgcrypt15 1.5.6-5

Modified:
  libgcrypt15/trunk/PKGBUILD

----------+
 PKGBUILD |   45 ++++++++++++++++++++++-----------------------
 1 file changed, 22 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-19 10:04:38 UTC (rev 1110459)
+++ PKGBUILD	2022-01-19 10:27:46 UTC (rev 1110460)
@@ -5,34 +5,35 @@
 
 pkgname=libgcrypt15
 pkgver=1.5.6
-pkgrel=4
+pkgrel=5
 pkgdesc='General purpose cryptographic library based on the code from GnuPG'
-arch=('x86_64')
-url='http://www.gnupg.org'
-license=('LGPL')
-depends=('glibc' 'libgpg-error')
-replaces=('libgcrypt11')
-source=("https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
-        'libgcrypt15-disable-build-timestamp.patch::https://github.com/gpg/libgcrypt/commit/a785cc3db0c4e8eb8ebbf784b833a40d2c42ec3e.patch')
-sha256sums=('301826b5e521c867056fd630aad6f0a60e176d18a017da6bc24b1695df3abe79'
-            'SKIP'
-            'cbf85bb7e62f3d5b9fcf07fb63a6c7c51d1a01cff7af049f36fd06e4e0b8b3cd')
-validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
+arch=(x86_64)
+url=http://www.gnupg.org
+license=(LGPL)
+depends=(
+  glibc
+  libgpg-error
+)
+makedepends=(git)
+replaces=(libgcrypt11)
+_tag=6e481d6bf0a69f8c9bd2866eb491e1e4e9b0717f
+source=(git+https://github.com/gpg/libgcrypt.git#tag=${_tag})
+b2sums=(SKIP)
 
 prepare() {
-  cd libgcrypt-${pkgver}
-
+  cd libgcrypt
   # Remove unreproducible build timestamp
-  patch -Np1 -i ../libgcrypt15-disable-build-timestamp.patch
-
-  autoreconf -if
+  git cherry-pick -n a785cc3db0c4e8eb8ebbf784b833a40d2c42ec3e
+  # disable doc
+  sed '/doc\/Makefile/d' -i configure.ac
+  sed 's/src doc tests/src tests/g' -i Makefile.am
+  autoreconf -fiv
 }
 
 build() {
-  cd libgcrypt-${pkgver}
-
+  cd libgcrypt
   ./configure \
-    --prefix='/usr' \
+    --prefix=/usr \
     --disable-static \
     --disable-padlock-support
   make
@@ -39,9 +40,7 @@
 }
 
 package() {
-  cd libgcrypt-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" install -C libgcrypt
   rm -rf "${pkgdir}"/usr/{bin,include,lib/libgcrypt.so,share}
 }
 



More information about the arch-commits mailing list