2020-10-11 15:58:18 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
|
2013-04-11 02:45:12 +00:00
|
|
|
# Contributor: Angel Velasquez <angvp@archlinux.org>
|
|
|
|
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
|
|
|
|
# Contributor: d'Ronin <daronin@2600.com>
|
2015-01-09 13:01:53 +00:00
|
|
|
# Contributor: Hexchain Tong <richard0053@gmail.com>
|
2018-04-11 12:40:19 +00:00
|
|
|
# Contributor: Jack Lloyd <jack@randombit.net>
|
2013-04-11 02:45:12 +00:00
|
|
|
|
2022-02-07 03:00:03 +00:00
|
|
|
# remove when bumped upstream
|
2013-04-11 02:45:12 +00:00
|
|
|
|
|
|
|
pkgname=botan
|
2022-01-22 00:21:28 +00:00
|
|
|
pkgver=2.19.1
|
2022-02-07 03:00:03 +00:00
|
|
|
pkgrel=1.1
|
2013-04-11 02:45:12 +00:00
|
|
|
pkgdesc='Crypto library written in C++'
|
2019-01-09 14:49:44 +00:00
|
|
|
arch=(x86_64)
|
2016-11-15 19:06:00 +00:00
|
|
|
url='https://botan.randombit.net/'
|
2019-01-09 14:49:44 +00:00
|
|
|
license=(BSD)
|
2020-10-11 15:58:18 +00:00
|
|
|
depends=(xz sqlite)
|
|
|
|
makedepends=(python boost openssl)
|
|
|
|
optdepends=('python: for using botan2.py' 'boost-libs: for the botan executable')
|
2022-01-20 13:51:06 +00:00
|
|
|
source=(https://botan.randombit.net/releases/Botan-${pkgver}.tar.xz{,.asc})
|
2022-01-22 00:21:28 +00:00
|
|
|
sha256sums=('e26e00cfefda64082afdd540d3c537924f645d6a674afed2cd171005deff5560'
|
2020-11-05 17:25:18 +00:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC') # Botan Distribution Key
|
2013-04-11 02:45:12 +00:00
|
|
|
|
|
|
|
build() {
|
2022-01-20 13:51:06 +00:00
|
|
|
cd ${pkgname^}-$pkgver
|
2013-04-11 02:45:12 +00:00
|
|
|
|
2020-01-07 19:00:20 +00:00
|
|
|
./configure.py \
|
2018-04-15 15:27:46 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--with-bzip \
|
|
|
|
--with-lzma \
|
2018-10-27 16:49:06 +00:00
|
|
|
--with-zlib \
|
2020-10-11 15:58:18 +00:00
|
|
|
--with-boost \
|
|
|
|
--with-openssl \
|
|
|
|
--with-sqlite3 \
|
2022-02-07 03:00:03 +00:00
|
|
|
--with-os-feature=getrandom
|
2015-08-02 18:23:14 +00:00
|
|
|
make
|
2013-04-11 02:45:12 +00:00
|
|
|
}
|
|
|
|
|
2015-10-18 15:30:41 +00:00
|
|
|
check() {
|
2022-01-20 13:51:06 +00:00
|
|
|
cd ${pkgname^}-$pkgver
|
2015-10-18 15:30:41 +00:00
|
|
|
|
2020-04-08 12:11:20 +00:00
|
|
|
LD_LIBRARY_PATH="$PWD" ./botan-test
|
2015-10-18 15:30:41 +00:00
|
|
|
}
|
|
|
|
|
2013-04-11 02:45:12 +00:00
|
|
|
package() {
|
2022-01-20 13:51:06 +00:00
|
|
|
DESTDIR="$pkgdir" make -C ${pkgname^}-$pkgver install
|
|
|
|
install -Dm644 ${pkgname^}-$pkgver/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2013-04-11 02:45:12 +00:00
|
|
|
}
|