[arch-commits] Commit in botan/trunk (PKGBUILD botan-ldflags.patch)

Antonio Rojas arojas at archlinux.org
Sun Oct 11 09:28:13 UTC 2020


    Date: Sunday, October 11, 2020 @ 09:28:12
  Author: arojas
Revision: 723450

Update to 2.16.0

Added:
  botan/trunk/botan-ldflags.patch
Modified:
  botan/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   26 +++++++++++++++++++-------
 botan-ldflags.patch |   17 +++++++++++++++++
 2 files changed, 36 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-11 08:59:07 UTC (rev 723449)
+++ PKGBUILD	2020-10-11 09:28:12 UTC (rev 723450)
@@ -1,4 +1,5 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
 # Contributor: Angel Velasquez <angvp at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 # Contributor: d'Ronin <daronin at 2600.com>
@@ -6,19 +7,27 @@
 # Contributor: Jack Lloyd <jack at randombit.net>
 
 pkgname=botan
-pkgver=2.15.0
+pkgver=2.16.0
 pkgrel=1
 pkgdesc='Crypto library written in C++'
 arch=(x86_64)
 url='https://botan.randombit.net/'
 license=(BSD)
-makedepends=(python)
-optdepends=('python: for using botan2.py')
+depends=(xz sqlite)
+makedepends=(python boost openssl)
+optdepends=('python: for using botan2.py' 'boost-libs: for the botan executable')
 validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
-source=("https://botan.randombit.net/releases/Botan-${pkgver}.tar.xz"{,.asc})
-sha256sums=('d88af1307f1fefac79aa4f2f524699478d69ce15a857cf2d0a90ac6bf2a50009'
-            'SKIP')
+source=("https://botan.randombit.net/releases/Botan-${pkgver}.tar.xz"{,.asc}
+         botan-ldflags.patch)
+sha256sums=('92ed6ebc918d86bd1b04221ca518af4cf29cc326c4760740bd2d22e61cea2628'
+            'SKIP'
+            'a6e85d537f9a1299be8a6763df09c1b90680f5efd92c42a53ff0f985c82b3000')
 
+prepare() {
+  cd ${pkgname^}-$pkgver
+  patch -p1 -i ../botan-ldflags.patch # Fix --as-needed
+}
+
 build() {
   cd "${pkgname^}-$pkgver"
 
@@ -27,6 +36,9 @@
     --with-bzip \
     --with-lzma \
     --with-zlib \
+    --with-boost \
+    --with-openssl \
+    --with-sqlite3 \
     --with-os-feature=getrandom
   make
 }

Added: botan-ldflags.patch
===================================================================
--- botan-ldflags.patch	                        (rev 0)
+++ botan-ldflags.patch	2020-10-11 09:28:12 UTC (rev 723450)
@@ -0,0 +1,17 @@
+diff --git a/src/build-data/makefile.in b/src/build-data/makefile.in
+index 0d678345f..07a8d9cd5 100644
+--- a/src/build-data/makefile.in
++++ b/src/build-data/makefile.in
+@@ -72,10 +72,10 @@ TESTOBJS = %{join test_objs}
+ # Executable targets
+ 
+ $(CLI): $(LIBRARIES) $(CLIOBJS)
+-	$(EXE_LINK_CMD) $(ABI_FLAGS) $(CLIOBJS) $(EXE_LINKS_TO) $(LDFLAGS) %{output_to_exe}$@
++	$(EXE_LINK_CMD) $(ABI_FLAGS) $(CLIOBJS) $(LDFLAGS) $(EXE_LINKS_TO) %{output_to_exe}$@
+ 
+ $(TEST): $(LIBRARIES) $(TESTOBJS)
+-	$(EXE_LINK_CMD) $(ABI_FLAGS) $(TESTOBJS) $(EXE_LINKS_TO) $(LDFLAGS) %{output_to_exe}$@
++	$(EXE_LINK_CMD) $(ABI_FLAGS) $(TESTOBJS) $(LDFLAGS) $(EXE_LINKS_TO) %{output_to_exe}$@
+ 
+ %{if build_fuzzers}
+ 



More information about the arch-commits mailing list