mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/botan to 1.11.20
This commit is contained in:
parent
5b6a03409f
commit
2833cb21bf
1 changed files with 18 additions and 10 deletions
|
@ -11,7 +11,7 @@
|
||||||
# - AArch64 patch
|
# - AArch64 patch
|
||||||
|
|
||||||
pkgname=botan
|
pkgname=botan
|
||||||
pkgver=1.11.18
|
pkgver=1.11.20
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Crypto library written in C++'
|
pkgdesc='Crypto library written in C++'
|
||||||
license=('BSD')
|
license=('BSD')
|
||||||
|
@ -19,23 +19,26 @@ arch=('x86_64' 'i686')
|
||||||
url='http://botan.randombit.net/'
|
url='http://botan.randombit.net/'
|
||||||
depends=('gcc-libs' 'sh' 'asio')
|
depends=('gcc-libs' 'sh' 'asio')
|
||||||
makedepends=('python2' 'asio' 'git')
|
makedepends=('python2' 'asio' 'git')
|
||||||
#source=("http://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc})
|
#source=("git://github.com/randombit/botan.git#commit=8e19ecf11c"
|
||||||
source=("git://github.com/randombit/botan.git#commit=8e19ecf11c"
|
source=("http://botan.randombit.net/releases/Botan-${pkgver}.tgz"{,.asc}
|
||||||
'0001-aarch64-support.patch')
|
'0001-aarch64-support.patch')
|
||||||
md5sums=('SKIP'
|
md5sums=('18dc2498cbcef88b553faca8eb5fac49'
|
||||||
|
'SKIP'
|
||||||
'37165d2a365dd2e9d779b89fa55ba77b')
|
'37165d2a365dd2e9d779b89fa55ba77b')
|
||||||
# Botan Distribution Key. To import: gpg --import botan.key
|
# Botan Distribution Key. To import: gpg --import botan.key
|
||||||
#validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
|
validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
patch -p1 -d botan -i ../0001-aarch64-support.patch
|
cd "${pkgname^}-$pkgver"
|
||||||
|
|
||||||
|
patch -p1 -i ../0001-aarch64-support.patch
|
||||||
|
|
||||||
# Use python2 for the installation scripts
|
# Use python2 for the installation scripts
|
||||||
find botan/src/scripts -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
|
find src/scripts -name '*.py' -exec sed -i -e '1s,python$,python2,' {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd botan
|
cd "${pkgname^}-$pkgver"
|
||||||
|
|
||||||
if [[ $CARCH == 'aarch64' ]]; then
|
if [[ $CARCH == 'aarch64' ]]; then
|
||||||
CPU='aarch64'
|
CPU='aarch64'
|
||||||
|
@ -49,12 +52,17 @@ build() {
|
||||||
CPU='arm/armv5te'
|
CPU='arm/armv5te'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python2 configure.py --prefix=/usr --enable-modules=cvc --destdir="$pkgdir/usr" --cpu=$CPU
|
python2 configure.py \
|
||||||
|
--prefix=/usr \
|
||||||
|
--enable-modules=cvc \
|
||||||
|
--destdir="$pkgdir/usr" \
|
||||||
|
--cpu=$CPU
|
||||||
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd botan
|
cd "${pkgname^}-$pkgver"
|
||||||
make DESTDIR="$pkgdir/usr" install
|
make DESTDIR="$pkgdir/usr" install
|
||||||
find "$pkgdir/usr/share/doc" -type f -exec chmod 0644 {} \;
|
find "$pkgdir/usr/share/doc" -type f -exec chmod 0644 {} \;
|
||||||
install -Dm644 doc/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
install -Dm644 doc/license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
|
Loading…
Reference in a new issue