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

Alexander Rødseth arodseth at archlinux.org
Fri Jan 9 12:36:23 UTC 2015


    Date: Friday, January 9, 2015 @ 13:36:23
  Author: arodseth
Revision: 125654

upgpkg: botan 1.11.12-2

Modified:
  botan/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-09 11:24:01 UTC (rev 125653)
+++ PKGBUILD	2015-01-09 12:36:23 UTC (rev 125654)
@@ -3,10 +3,11 @@
 # Contributor: Angel Velasquez <angvp at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 # Contributor: d'Ronin <daronin at 2600.com>
+# Contributor: Hexchain Tong <richard0053 at gmail.com>
 
 pkgname=botan
 pkgver=1.11.12
-pkgrel=1
+pkgrel=2
 pkgdesc='Crypto library written in C++'
 license=('BSD')
 arch=('x86_64' 'i686')
@@ -18,8 +19,10 @@
 validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC') # Botan Distribution Key
 
 prepare() {
+  cd "Botan-$pkgver/src"
+
   # Use python2 for the installation scripts
-  find "Botan-$pkgver/src/scripts" -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
+  find scripts -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
 }
 
 build() {
@@ -35,6 +38,9 @@
   make DESTDIR="$pkgdir/usr" install
   find "$pkgdir/usr/share/doc" -type f -exec chmod 0644 {} \;
   install -Dm644 doc/license.rst "$pkgdir/usr/share/licenses/$pkgname/license.rst"
+
+  # Fix the pkg-config location
+  mv "$pkgdir/usr/pkgconfig" "$pkgdir/usr/lib/pkgconfig"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list