blob: 38ac95e2eb629890824d0eeb89f06b509cfd8e0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.8.1
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="ftp://ftp.gnupg.org/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="27c9d2fd9cba5afca71d421c9299d6942463975fae0bd10d4ff42cda2d7ea213e6b73c071a40fcf23ff52a93394cc7505ab332f8a4a3321826460e471eda5b4e libgcrypt-1.8.1.tar.bz2"
|