aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgcrypt/APKBUILD
blob: 6f6f6619a8ed60f5b1cace2d4c80c2831baf426a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.5.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 () {
	cd "$srcdir"/$pkgname-$pkgver

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-padlock-support \
		--disable-static \
		|| 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="993159b2924ae7b0e4eaff0743c2db35  libgcrypt-1.5.3.tar.bz2"
sha256sums="bcf5334e7da352c45de6aec5d2084ce9a1d30029ff4a4a5da13f1848874759d1  libgcrypt-1.5.3.tar.bz2"
sha512sums="2fc2771d00d5fef9a7158790a8914da10154a5fac9124bf21ee43edd08b43dd4452f38a3aee12deb46d86f574ffdd0688c5829e978f4de2fa3e07be486e99723  libgcrypt-1.5.3.tar.bz2"