blob: 93787d9d51352ce1e66b07741522d1a9cfc76bd8 (
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.6.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/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 -f ${pkgdir}/usr/share/info/dir
}
md5sums="4262c3aadf837500756c2051a5c4ae5e libgcrypt-1.6.3.tar.bz2"
sha256sums="41b4917b93ae34c6a0e2127378d7a4d66d805a2a86a09911d4f9bd871db7025f libgcrypt-1.6.3.tar.bz2"
sha512sums="09a84fcc4d3d755df21f46302a549af4ba788d829ff7fa0cf65eeec033bc3744503f8fe3f4be55a51cc17b1b1b487736c328d7d7bc909f13139600236298c549 libgcrypt-1.6.3.tar.bz2"
|