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.4.17
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"
11
depends=""
Natanael Copa's avatar
Natanael Copa committed
12
depends_dev="nettle-dev zlib-dev libtasn1-dev p11-kit-dev"
13
makedepends="$depends_dev texinfo"
Natanael Copa's avatar
Natanael Copa committed
14
subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx"
15 16 17 18 19
_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
20 21
	"

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

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

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

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

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
59 60 61
md5sums="03ea7575a43f58964635a5064cce4dc0  gnutls-3.4.17.tar.xz"
sha256sums="9b50e8a670d5e950425d96935c7ddd415eb6f8079615a36df425f09a3143172e  gnutls-3.4.17.tar.xz"
sha512sums="a0a578034e8092dd422dc310a655fda3c4a2de5cb06745d9b47bb39734cb983902553b56dfbbabc618b3824defc62489b1b3c8de3b824b97b28273ddedd06ea7  gnutls-3.4.17.tar.xz"