community/botan to 1.10.6-1

This commit is contained in:
Kevin Mihelich 2013-11-25 14:42:12 +00:00
parent b105cee45a
commit 328c00dec8

View file

@ -9,7 +9,7 @@
# - --cpu in configure set to correct architectures, autodetect fails
pkgname=botan
pkgver=1.10.5
pkgver=1.10.6
pkgrel=1
pkgdesc='Crypto library written in C++'
license=('BSD')
@ -18,10 +18,10 @@ url='http://botan.randombit.net/'
depends=('gcc-libs' 'sh')
makedepends=('python2')
source=("http://files.randombit.net/botan/Botan-${pkgver}.tbz")
sha256sums=('2934c00533847dc93c485081d3ce6aae4a110151a69b587b895241159da77cf3')
sha256sums=('72a9be97350523ee1b06c8722032faa566fcb98456b0b7ac06b45a1dc4446fa7')
build() {
cd "$srcdir/Botan-$pkgver"
cd "Botan-$pkgver"
if [[ $CARCH == 'armv7h' ]]; then
sed -i 's/lang_flags "/lang_flags "-mfpu=vfpv3-d16 -mfloat-abi=hard /' src/build-data/cc/gcc.txt
@ -33,17 +33,16 @@ build() {
CPU='arm/armv5te'
fi
sed -i 's:env python:env python2:' configure.py
./configure.py --prefix=/usr --cpu=$CPU
python2 configure.py --prefix=/usr --cpu=$CPU
make
}
package() {
cd "$srcdir/Botan-$pkgver"
cd "Botan-$pkgver"
make DESTDIR="$pkgdir/usr" install
install -Dm644 doc/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
find "$pkgdir/usr/share/doc" -type f -exec chmod 0644 {} \;
install -Dm644 doc/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et: