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

Alexander Rødseth arodseth at archlinux.org
Thu Apr 12 17:06:16 UTC 2018


    Date: Thursday, April 12, 2018 @ 17:06:10
  Author: arodseth
Revision: 316094

upgpkg: botan 2.6.0-1

Modified:
  botan/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-12 16:03:54 UTC (rev 316093)
+++ PKGBUILD	2018-04-12 17:06:10 UTC (rev 316094)
@@ -7,41 +7,42 @@
 # Contributor: Jack Lloyd <jack at randombit.net>
 
 pkgname=botan
-pkgver=2.5.0
-pkgrel=4
+pkgver=2.6.0
+pkgrel=1
 pkgdesc='Crypto library written in C++'
 arch=('x86_64')
 url='https://botan.randombit.net/'
 license=('BSD')
-makedepends=('git' 'python')
-# Using a specific commit instead of the .tgz because botan issue #1524
-source=('git+https://github.com/randombit/botan#commit=6c5d9ef3c49658cbf4096e04905e3c0debb9d096')
-md5sums=('SKIP')
-#validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
-#source=("https://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc})
-#sha256sums=('b8a31fe03e7f048a5bd3967ecd04b6a48966215e78792df06e333b0eede4fb1b'
-#            'SKIP')
+depends=('xz')
+makedepends=('python')
+optdepends=('python: for using botan2.py')
+validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
+source=("https://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc})
+sha256sums=('c1f261555bba702c73608dde7bd743ef2d6377a41a1c295915b25c5babaf5cc5'
+            'SKIP')
 
 build() {
-  cd "$pkgname"
-  #cd "${pkgname^}-$pkgver"
+  cd "${pkgname^}-$pkgver"
 
-  # botan benefits from -O3, and the developers runs tests with it
-  CXXFLAGS="$CXXFLAGS -O3" ./configure.py --prefix=/usr --with-bzip --with-zlib --with-lzma
+  # botan benefits from -O3, and upstream devs are running benchmarks with it
+  CXXFLAGS="$CXXFLAGS -O3" ./configure.py \
+    --prefix=/usr \
+    --with-bzip \
+    --with-zlib \
+    --with-lzma
   make
 }
 
 check() {
-  cd "$pkgname"
+  cd "${pkgname^}-$pkgver"
 
   ./botan-test
 }
 
 package() {
-  cd "$pkgname"
-
-  make DESTDIR="$pkgdir" install
-  install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  DESTDIR="$pkgdir" make -C "${pkgname^}-$pkgver" install
+  install -Dm644 "${pkgname^}-$pkgver/license.txt" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 # getver: github.com/randombit/botan



More information about the arch-commits mailing list