# $Id: PKGBUILD 103215 2013-12-30 13:50:26Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Angel Velasquez # Contributor: Douglas Soares de Andrade # Contributor: d'Ronin pkgname=botan pkgver=1.10.7 pkgrel=1 pkgdesc='Crypto library written in C++' license=('BSD') arch=('x86_64' 'i686' 'mips64el') url='http://botan.randombit.net/' depends=('gcc-libs' 'sh') makedepends=('python2') source=("http://files.randombit.net/botan/Botan-${pkgver}.tbz") sha256sums=('19f79ae670cb2ea7c290244ff6ff564ce74b45d8845af52787a30c646e16324d') build() { cd "Botan-$pkgver" sed -i 's:env python:env python2:' configure.py sed -i 's/mabi=64/mabi=n32/g' src/build-data/cc/gcc.txt python2 configure.py --prefix=/usr 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: