community/botan to 1.11.21-1

This commit is contained in:
Kevin Mihelich 2015-10-18 15:30:41 +00:00
parent b3e73ae6c1
commit 5f8be8afc4

View file

@ -1,5 +1,5 @@
# $Id: PKGBUILD 87983 2013-04-09 20:48:46Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: d'Ronin <daronin@2600.com>
@ -11,18 +11,18 @@
# - AArch64 patch
pkgname=botan
pkgver=1.11.20
pkgver=1.11.21
pkgrel=1
pkgdesc='Crypto library written in C++'
license=('BSD')
arch=('x86_64' 'i686')
url='http://botan.randombit.net/'
depends=('gcc-libs' 'sh' 'asio')
makedepends=('python2' 'asio' 'git')
makedepends=('python' 'asio' 'git')
#source=("git://github.com/randombit/botan.git#commit=8e19ecf11c"
source=("http://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc}
'0001-aarch64-support.patch')
md5sums=('18dc2498cbcef88b553faca8eb5fac49'
md5sums=('f8cb3f2d112685550d88434210136a58'
'SKIP'
'37165d2a365dd2e9d779b89fa55ba77b')
# Botan Distribution Key. To import: gpg --import botan.key
@ -32,9 +32,6 @@ prepare() {
cd "${pkgname^}-$pkgver"
patch -p1 -i ../0001-aarch64-support.patch
# Use python2 for the installation scripts
find src/scripts -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
}
build() {
@ -52,15 +49,20 @@ build() {
CPU='arm/armv5te'
fi
python2 configure.py \
python configure.py \
--prefix=/usr \
--enable-modules=cvc \
--destdir="$pkgdir/usr" \
--cpu=$CPU
make
}
check() {
cd "${pkgname^}-$pkgver"
./botan-test
}
package() {
cd "${pkgname^}-$pkgver"
make DESTDIR="$pkgdir/usr" install