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

Alexander Rødseth arodseth at archlinux.org
Sun Sep 27 12:12:57 UTC 2015


    Date: Sunday, September 27, 2015 @ 14:12:56
  Author: arodseth
Revision: 141687

upgpkg: botan 1.11.20-1

Modified:
  botan/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-27 11:03:44 UTC (rev 141686)
+++ PKGBUILD	2015-09-27 12:12:56 UTC (rev 141687)
@@ -6,7 +6,7 @@
 # Contributor: Hexchain Tong <richard0053 at gmail.com>
 
 pkgname=botan
-pkgver=1.11.18
+pkgver=1.11.20
 pkgrel=1
 pkgdesc='Crypto library written in C++'
 license=('BSD')
@@ -14,28 +14,37 @@
 url='http://botan.randombit.net/'
 depends=('gcc-libs' 'sh' 'asio')
 makedepends=('python2' 'asio' 'git')
-#source=("http://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc})
-source=("git://github.com/randombit/botan.git#commit=8e19ecf11c")
-md5sums=('SKIP')
+source=("http://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc})
+#source=("git://github.com/randombit/botan.git#commit=8e19ecf11c")
+md5sums=('18dc2498cbcef88b553faca8eb5fac49'
+         'SKIP')
 # Botan Distribution Key. To import: gpg --import botan.key
-#validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
+validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
 
 prepare() {
+  cd "${pkgname^}-$pkgver"
+
   # Use python2 for the installation scripts
-  find botan/src/scripts -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
+  find src/scripts -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
 }
 
 build() {
-  cd botan
-  python2 configure.py --prefix=/usr --enable-modules=cvc --destdir="$pkgdir/usr"
+  cd "${pkgname^}-$pkgver"
+
+  python2 configure.py \
+    --prefix=/usr \
+    --enable-modules=cvc \
+    --destdir="$pkgdir/usr"
   make
 }
 
 package() {
-  cd botan
+  cd "${pkgname^}-$pkgver"
+
   make DESTDIR="$pkgdir/usr" install
   find "$pkgdir/usr/share/doc" -type f -exec chmod 0644 {} \;
   install -Dm644 doc/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
+# getver ok
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list