summaryrefslogtreecommitdiffstats
path: root/main/libgcrypt/APKBUILD
blob: 241ff5bdda39cef2820857fa45235311111c775a (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.2
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="668aa1a1aae93f5fccb7eda4be403026  libgcrypt-1.5.2.tar.bz2"
sha256sums="e41a4339f50294f3c925f2f71aaf2427eb162d2994da91666dfc32621afe963f  libgcrypt-1.5.2.tar.bz2"
sha512sums="2e9e2edb2f216f3b25622bba994780cb592d115d9b41643ef2b9e11fb8cbe097636340dfbdcb263b8627b02479507ba20b74aacfdbfd14d12886467b72e1dffb  libgcrypt-1.5.2.tar.bz2"