blob: 694aa97169e9a06ae2eae2ef004d15a3d9c6f42c (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.7.3
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 \
--disable-static \
$_arch_configure \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
rm -f ${pkgdir}/usr/share/info/dir
}
md5sums="c869e542cc13a1c28d8055487bf7f5c4 libgcrypt-1.7.3.tar.bz2"
sha256sums="ddac6111077d0a1612247587be238c5294dd0ee4d76dc7ba783cc55fb0337071 libgcrypt-1.7.3.tar.bz2"
sha512sums="55c5704e45167dc5adf1e5a92789a5d841dc27966212cc556abb374e724fddcd85c74b83e0cfa5f3ed2575e3fec9465e8a90d1c5bc8ab1f6697c9abfc2dcaa05 libgcrypt-1.7.3.tar.bz2"
|