mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libgcrypt
|
|
pkgver=1.8.2
|
|
pkgrel=0
|
|
pkgdesc="general purpose crypto library based on the code used in GnuPG"
|
|
url="http://www.gnupg.org"
|
|
arch="all"
|
|
license="LGPL"
|
|
depends=""
|
|
depends_dev="libgpg-error-dev"
|
|
makedepends="$depends_dev texinfo"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$pkgname-$pkgver.tar.bz2"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
build () {
|
|
cd "$builddir"
|
|
|
|
local _arch_configure=
|
|
case "$CARCH" in
|
|
arm*)
|
|
# disable arm assembly for now as it produces TEXTRELs
|
|
export gcry_cv_gcc_arm_platform_as_ok=no
|
|
;;
|
|
x86 | x86_64)
|
|
_arch_configure="--enable-padlock-support"
|
|
;;
|
|
esac
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--disable-static \
|
|
$_arch_configure
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# t-secmem fails on ppc64le, see https://dev.gnupg.org/T3375
|
|
[ "$CARCH" != ppc64le ] || return 0
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
rm -f ${pkgdir}/usr/share/info/dir
|
|
}
|
|
|
|
sha512sums="1e8c414f95bf6b50e778102ca7c1b3b1f30d8320826d9fff747a0a098ef85499cdc3e6de736853b9cd4e5dadda35c7c0a291e13643dcac5eaef44f2ddc7a6c09 libgcrypt-1.8.2.tar.bz2"
|