APKBUILD 1.15 KB
Newer Older
root's avatar
root committed
1
# Contributor: Michael Mason <ms13sp@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
root's avatar
root committed
3
pkgname=gnutls
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=3.1.0
5 6
pkgrel=0
pkgdesc="A TLS protocol implementation"
root's avatar
root committed
7
url="http://www.gnu.org/software/gnutls/"
8
arch="all"
root's avatar
root committed
9
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
10
depends=
Natanael Copa's avatar
Natanael Copa committed
11
depends_dev="nettle-dev zlib-dev libtasn1-dev p11-kit-dev"
12
makedepends="$depends_dev"
root's avatar
root committed
13
install=
Natanael Copa's avatar
Natanael Copa committed
14 15
subpackages="$pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx"
source="http://ftp.gnu.org/pub/gnu/gnutls/$pkgname-$pkgver.tar.xz"
root's avatar
root committed
16 17 18 19 20 21 22

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
Natanael Copa's avatar
Natanael Copa committed
23
		--disable-openssl-compatibility \
24 25 26
		--disable-rpath \
		--disable-static \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
27 28
	make
}
root's avatar
root committed
29

Natanael Copa's avatar
Natanael Copa committed
30 31 32
package() {
	cd "$srcdir/$pkgname-$pkgver"
	make -j1 DESTDIR="$pkgdir" install
33
	rm -f "$pkgdir"/usr/lib/*.la
root's avatar
root committed
34 35
}

36 37 38 39 40
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
41 42 43 44 45 46 47

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

Natanael Copa's avatar
Natanael Copa committed
48
md5sums="db88d8fc44e44be4a0a14b24aa204bbf  gnutls-3.1.0.tar.xz"