Date: Monday, May 1, 2023 @ 16:47:11
  Author: arojas
Revision: 476142

Add legacy botan2 package

Added:
  botan2/
  botan2/trunk/
  botan2/trunk/PKGBUILD

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

Added: botan2/trunk/PKGBUILD
===================================================================
--- botan2/trunk/PKGBUILD                               (rev 0)
+++ botan2/trunk/PKGBUILD       2023-05-01 16:47:11 UTC (rev 476142)
@@ -0,0 +1,48 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Alexander F. Rødseth <[email protected]>
+# Contributor: Angel Velasquez <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+# Contributor: d'Ronin <[email protected]>
+# Contributor: Hexchain Tong <[email protected]>
+# Contributor: Jack Lloyd <[email protected]>
+
+pkgname=botan2
+pkgver=2.19.3
+pkgrel=1
+pkgdesc='Crypto library written in C++ (legacy version)'
+arch=(x86_64)
+url='https://botan.randombit.net/'
+license=(BSD)
+depends=(xz sqlite)
+makedepends=(python boost)
+optdepends=('python: for using botan2.py')
+source=(https://botan.randombit.net/releases/Botan-${pkgver}.tar.xz{,.asc})
+sha256sums=('dae047f399c5a47f087db5d3d9d9e8f11ae4985d14c928d71da1aff801802d55'
+            'SKIP')
+validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC') # Botan Distribution 
Key
+
+build() {
+  cd Botan-$pkgver
+
+  ./configure.py \
+    --prefix=/usr \
+    --with-bzip \
+    --with-lzma \
+    --with-zlib \
+    --with-boost \
+    --with-sqlite3 \
+    --with-os-feature=getrandom \
+    --build-targets=shared,tests
+  make
+}
+
+check() {
+  cd Botan-$pkgver
+
+  LD_LIBRARY_PATH="$PWD" ./botan-test
+}
+
+package() {
+  DESTDIR="$pkgdir" make -C Botan-$pkgver install
+  install -Dm644 Botan-$pkgver/license.txt 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to