aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgcrypt/APKBUILD
blob: 5cb31cf7242de557d970043b8b9b9b6af34b3185 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.5.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=
makedepends="libgpg-error-dev texinfo"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2"

depends_dev="libgpg-error-dev"

build () {
	cd "$srcdir"/$pkgname-$pkgver

	./configure --build=${CHOST:-i486-alpine-linux-uclibc} \
		--prefix=/usr \
		--enable-padlock-support \
		--disable-static

	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="5be3cc6e105db5d64c318127a5c10c94  libgcrypt-1.5.1.tar.bz2"
sha256sums="ad9eb15808e769998c0bd8c181ac881423919f4f105586913dccbc0dfbfae527  libgcrypt-1.5.1.tar.bz2"
sha512sums="e7ae8ed5080e9168ff2e9061b333f7de0e9dcba7dea2702aeb7f38d8b5cfefb7efbdd57f6fb0f7b53e26cb95779711415c7e458dfb4091b9b24953fca049a48a  libgcrypt-1.5.1.tar.bz2"