mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
community/botan to 2.6.0-1
This commit is contained in:
parent
a18fc1434e
commit
cfd1629339
1 changed files with 23 additions and 22 deletions
|
@ -11,52 +11,53 @@
|
||||||
# - disable neon on !AArch64
|
# - disable neon on !AArch64
|
||||||
|
|
||||||
pkgname=botan
|
pkgname=botan
|
||||||
pkgver=2.5.0
|
pkgver=2.6.0
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc='Crypto library written in C++'
|
pkgdesc='Crypto library written in C++'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://botan.randombit.net/'
|
url='https://botan.randombit.net/'
|
||||||
license=('BSD')
|
license=('BSD')
|
||||||
makedepends=('git' 'python')
|
depends=('xz')
|
||||||
# Using a specific commit instead of the .tgz because botan issue #1524
|
makedepends=('python')
|
||||||
source=('git+https://github.com/randombit/botan#commit=6c5d9ef3c49658cbf4096e04905e3c0debb9d096'
|
optdepends=('python: for using botan2.py')
|
||||||
|
validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
|
||||||
|
source=("https://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc}
|
||||||
'0001-aarch64-support.patch')
|
'0001-aarch64-support.patch')
|
||||||
md5sums=('SKIP'
|
sha256sums=('c1f261555bba702c73608dde7bd743ef2d6377a41a1c295915b25c5babaf5cc5'
|
||||||
'37165d2a365dd2e9d779b89fa55ba77b')
|
'SKIP'
|
||||||
#validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
|
'0e279e3b16e115e26f5dc1edf02a4082f063134513aaf6ad1fbd10a1d2624e37')
|
||||||
#source=("https://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc})
|
|
||||||
#sha256sums=('b8a31fe03e7f048a5bd3967ecd04b6a48966215e78792df06e333b0eede4fb1b'
|
|
||||||
# 'SKIP')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname"
|
cd "${pkgname^}-$pkgver"
|
||||||
#cd "${pkgname^}-$pkgver"
|
|
||||||
|
|
||||||
patch -p1 -i ../0001-aarch64-support.patch
|
patch -p1 -i ../0001-aarch64-support.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname"
|
cd "${pkgname^}-$pkgver"
|
||||||
#cd "${pkgname^}-$pkgver"
|
|
||||||
|
|
||||||
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
|
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
|
||||||
|
|
||||||
# botan benefits from -O3, and the developers runs tests with it
|
# botan benefits from -O3, and upstream devs are running benchmarks with it
|
||||||
CXXFLAGS="$CXXFLAGS -O3" ./configure.py --prefix=/usr --with-bzip --with-zlib --with-lzma $CONFIG
|
CXXFLAGS="$CXXFLAGS -O3" ./configure.py \
|
||||||
|
--prefix=/usr \
|
||||||
|
--with-bzip \
|
||||||
|
--with-zlib \
|
||||||
|
--with-lzma \
|
||||||
|
$CONFIG
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$pkgname"
|
cd "${pkgname^}-$pkgver"
|
||||||
|
|
||||||
./botan-test
|
./botan-test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname"
|
DESTDIR="$pkgdir" make -C "${pkgname^}-$pkgver" install
|
||||||
|
install -Dm644 "${pkgname^}-$pkgver/license.txt" \
|
||||||
make DESTDIR="$pkgdir" install
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# getver: github.com/randombit/botan
|
# getver: github.com/randombit/botan
|
||||||
|
|
Loading…
Reference in a new issue