blob: d6aea8500b529de038ec8ff4b99252325ce0da9d (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.6.1
pkgrel=1
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/libgcrypt-$pkgver.tar.bz2"
build () {
local _arch_configure=
cd "$srcdir"/$pkgname-$pkgver
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 "$srcdir"/$pkgname-$pkgver
make -j1 DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
rm -f ${pkgdir}/usr/share/info/dir
}
md5sums="a5a5060dc2f80bcac700ab0236ea47dc libgcrypt-1.6.1.tar.bz2"
sha256sums="a1c3efea69f8ffe769f488b300ce190eeeb0c30de24a53f1c1b6e4202fdc2070 libgcrypt-1.6.1.tar.bz2"
sha512sums="83d502cf998736a5920df7324b7ff658041c34b2cfddccd8b96744ff940c0c84fe91fe7bfe03a69b10b9697a6f04f3007134bbc3c288b0fed78b60fc6ff15bc2 libgcrypt-1.6.1.tar.bz2"
|