summaryrefslogtreecommitdiff
path: root/extra/botan/PKGBUILD
blob: 51603c0fc465c1c24624caa6f8f45181a02c67dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 163218 2012-07-11 00:19:22Z eric $
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: d'Ronin <daronin@2600.com>

pkgname=botan
pkgver=1.10.3
pkgrel=1
pkgdesc="Crypto library written in C++"
license=('BSD')
arch=('i686' 'x86_64')
url="http://botan.randombit.net/"
depends=('gcc-libs' 'sh')
makedepends=('python2')
source=(http://files.randombit.net/botan/Botan-${pkgver}.tbz{,.asc})
sha1sums=('9f929101bf75c19432f49f57c80d2d26eec91dcb'
          'd03b220849e3d3b3a49363a0debc266b615d9fca')

build() {
  cd "${srcdir}/Botan-${pkgver}"
  sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' configure.py
  ./configure.py --prefix=/usr
  make 
}

package() {
  cd "${srcdir}/Botan-${pkgver}"
  make DESTDIR="${pkgdir}/usr" install
  install -D -m644 doc/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  find "${pkgdir}/usr/share/doc" -type f -exec chmod 0644 {} \;
}