community/botan to 1.11.20

This commit is contained in:
Kevin Mihelich 2015-09-27 13:24:16 +00:00
parent 5b6a03409f
commit 2833cb21bf

View file

@ -11,7 +11,7 @@
# - AArch64 patch
pkgname=botan
pkgver=1.11.18
pkgver=1.11.20
pkgrel=1
pkgdesc='Crypto library written in C++'
license=('BSD')
@ -19,23 +19,26 @@ arch=('x86_64' 'i686')
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"
#source=("git://github.com/randombit/botan.git#commit=8e19ecf11c"
source=("http://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc}
'0001-aarch64-support.patch')
md5sums=('SKIP'
md5sums=('18dc2498cbcef88b553faca8eb5fac49'
'SKIP'
'37165d2a365dd2e9d779b89fa55ba77b')
# Botan Distribution Key. To import: gpg --import botan.key
#validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
prepare() {
patch -p1 -d botan -i ../0001-aarch64-support.patch
cd "${pkgname^}-$pkgver"
patch -p1 -i ../0001-aarch64-support.patch
# 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
cd "${pkgname^}-$pkgver"
if [[ $CARCH == 'aarch64' ]]; then
CPU='aarch64'
@ -49,12 +52,17 @@ build() {
CPU='arm/armv5te'
fi
python2 configure.py --prefix=/usr --enable-modules=cvc --destdir="$pkgdir/usr" --cpu=$CPU
python2 configure.py \
--prefix=/usr \
--enable-modules=cvc \
--destdir="$pkgdir/usr" \
--cpu=$CPU
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"