# $Id: PKGBUILD 87983 2013-04-09 20:48:46Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Angel Velasquez # Contributor: Douglas Soares de Andrade # Contributor: d'Ronin # ALARM: Kevin Mihelich # - compiler flags adjustment to build correctly # - --cpu in configure set to correct architectures, autodetect fails pkgname=botan pkgver=1.10.6 pkgrel=1 pkgdesc='Crypto library written in C++' license=('BSD') arch=('x86_64' 'i686') url='http://botan.randombit.net/' depends=('gcc-libs' 'sh') makedepends=('python2') source=("http://files.randombit.net/botan/Botan-${pkgver}.tbz") sha256sums=('72a9be97350523ee1b06c8722032faa566fcb98456b0b7ac06b45a1dc4446fa7') build() { 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 CPU='arm/armv7-a' elif [[ $CARCH == 'armv6h' ]]; then sed -i 's/lang_flags "/lang_flags "-mfpu=vfp -mfloat-abi=hard /' src/build-data/cc/gcc.txt CPU='arm/armv6' elif [[ $CARCH == 'arm' ]]; then CPU='arm/armv5te' fi python2 configure.py --prefix=/usr --cpu=$CPU make } package() { cd "Botan-$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" } # vim:set ts=2 sw=2 et: