APKBUILD 1.6 KB
Newer Older
1
# Contriburo: Łukasz Jendrysik <scadu@yandex.com>
root's avatar
root committed
2
# Contributor: Michael Mason <ms13sp@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
root's avatar
root committed
4
pkgname=gnutls
A. Klitzing's avatar
A. Klitzing committed
5
pkgver=3.5.8
6
pkgrel=1
7
pkgdesc="A TLS protocol implementation"
8
url="http://www.gnutls.org/"
9
arch="all"
root's avatar
root committed
10
license="GPL"
11
makedepends="nettle-dev zlib-dev libtasn1-dev p11-kit-dev libunistring-dev texinfo"
Natanael Copa's avatar
Natanael Copa committed
12
subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx"
13 14 15 16 17
_v=${pkgver%.*}
case $pkgver in
*.*.*.*) _v=${_v%.*};;
esac
source="ftp://ftp.gnutls.org/gcrypt/gnutls/v${_v}/$pkgname-$pkgver.tar.xz
Natanael Copa's avatar
Natanael Copa committed
18 19
	"

20
builddir="$srcdir/$pkgname-$pkgver"
root's avatar
root committed
21 22

build() {
23
	cd "$builddir"
24 25 26 27
	LIBS="-lgmp" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
root's avatar
root committed
28 29 30
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
Natanael Copa's avatar
Natanael Copa committed
31
		--disable-openssl-compatibility \
32 33
		--disable-rpath \
		--disable-static \
Natanael Copa's avatar
Natanael Copa committed
34 35
		--disable-guile \
		--disable-valgrind-tests \
36
		|| return 1
37
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
38
}
root's avatar
root committed
39

Natanael Copa's avatar
Natanael Copa committed
40
package() {
41 42
	make -j1 DESTDIR="$pkgdir" \
		-C "$builddir" install
root's avatar
root committed
43 44
}

45 46 47 48 49
utils() {
	pkgdesc="Command line tools for TLS protocol"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
Natanael Copa's avatar
Natanael Copa committed
50 51 52 53 54 55 56

xx() {
	pkgdesc="The C++ interface to GnuTLS"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*xx.so.* "$subpkgdir"/usr/lib/
}

A. Klitzing's avatar
A. Klitzing committed
57 58 59
md5sums="113e892e51acdb11b81804cd355adfee  gnutls-3.5.8.tar.xz"
sha256sums="0e97f243ae72b70307d684b84c7fe679385aa7a7a0e37e5be810193dcc17d4ff  gnutls-3.5.8.tar.xz"
sha512sums="e6cdc4f9f2e41bd10e61b90b6b5ea3882c80a7130de8a0e9c23e373985cdc332128529dad49d6854fe93ee934e1bbde8b34dfd19e354b3a8e11b22d61424292e  gnutls-3.5.8.tar.xz"