mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# $Id$
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - disable NEON and ARMv8 crypto support on !AArch64
|
|
# - fix screwed up capability detection
|
|
|
|
pkgname=libgcrypt
|
|
pkgver=1.8.0
|
|
pkgrel=1
|
|
pkgdesc="General purpose cryptographic library based on the code from GnuPG"
|
|
arch=(i686 x86_64)
|
|
url="http://www.gnupg.org"
|
|
license=('LGPL')
|
|
depends=('libgpg-error')
|
|
options=('!emptydirs')
|
|
# https://www.gnupg.org/download/integrity_check.html
|
|
source=(ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
|
|
# https://gnupg.org/download/integrity_check.html
|
|
sha1sums=('b4ffb20369f2ab8249d5cc0fb8b3b31371f6b112'
|
|
'SKIP')
|
|
validpgpkeys=('031EC2536E580D8EA286A9F22071B08A33BD3F06' # "NIIBE Yutaka (GnuPG Release Key) <gniibe@fsij.org>"
|
|
'D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon-support --disable-arm-crypto-support"
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--disable-padlock-support \
|
|
$CONFIG
|
|
|
|
# fix screwed up capability detection
|
|
if [[ $CARCH != "aarch64" ]]; then
|
|
sed -i '/HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1/d' config.h
|
|
sed -i '/HAVE_GCC_INLINE_ASM_NEON 1/d' config.h
|
|
fi
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
}
|