APKBUILD 1.62 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=0
7
pkgdesc="A TLS protocol implementation"
8
url="http://www.gnutls.org/"
9
arch="all"
root's avatar
root committed
10
license="GPL"
A. Klitzing's avatar
A. Klitzing committed
11
depends_dev="nettle-dev zlib-dev libtasn1-dev p11-kit-dev libunistring-dev"
12
makedepends="$depends_dev texinfo"
Natanael Copa's avatar
Natanael Copa committed
13
subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx"
14 15 16 17 18
_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
19 20
	"

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

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

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

46 47 48 49 50
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
51 52 53 54 55 56 57

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
58 59 60
md5sums="113e892e51acdb11b81804cd355adfee  gnutls-3.5.8.tar.xz"
sha256sums="0e97f243ae72b70307d684b84c7fe679385aa7a7a0e37e5be810193dcc17d4ff  gnutls-3.5.8.tar.xz"
sha512sums="e6cdc4f9f2e41bd10e61b90b6b5ea3882c80a7130de8a0e9c23e373985cdc332128529dad49d6854fe93ee934e1bbde8b34dfd19e354b3a8e11b22d61424292e  gnutls-3.5.8.tar.xz"