summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6748aff913a012489b7761e4fa794bb6740a7801 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: drakkan <nicola.murino@gmail.com>

pkgname=botan1.10
pkgver=1.10.17
pkgrel=4
pkgdesc='Obsolete branch of the Botan crypto library for Monotone'
license=('BSD')
arch=('x86_64')
url='http://botan.randombit.net/'
depends=('gcc-libs' 'sh')
makedepends=('python')
source=("https://botan.randombit.net/releases/old/Botan-${pkgver}.tgz"{,.asc}
        "botan1_10_17-latest-commits.patch"
        "sphinx-python3.diff")
sha512sums=('a47cab3af113652247c8efc8b0f043eb62175eaa8554833d5fc3016ea94dbdd8aa722ab9b5226cc5f133afbcc088d54362111630eaa4594812c39925cc3c8649'
            'SKIP'
            'b490383950ddbeb3ec472ba7075e986aa52175c99ef348d8446a648f3f39e0e9a0c80e1a0591d77f9b4d04e60c7784452296fa2bf2a238f5dad50ccedbf970f4'
            '18cdf4f3739adb853e1b9a743ef79caad899fcd074bd70e4bb689716a8ee46768667ddc74912ed8849474ffd45c10f5399b0dc8f330a9b9851c24cce3a228937')
validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')  # Botan Distribution Key

prepare() {
  cd "Botan-$pkgver"

  patch -Np1 < "$srcdir/botan1_10_17-latest-commits.patch"
  patch -Np1 < "$srcdir/sphinx-python3.diff"
}

build() {
  cd "Botan-$pkgver"

  python configure.py --prefix=/usr --enable-modules=cvc
  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: