APKBUILD 1.46 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
4
pkgver=3.2.1
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
6
pkgdesc="A TLS protocol implementation"
7
url="http://www.gnutls.org/"
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
subpackages="$pkgname-doc $pkgname-dev $pkgname-utils $pkgname-c++:xx"
15
source="ftp://ftp.gnutls.org/gcrypt/gnutls/v${pkgver%.*}/$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
		--disable-rpath \
		--disable-static \
Natanael Copa's avatar
Natanael Copa committed
26 27
		--disable-guile \
		--disable-valgrind-tests \
28
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
29 30
	make
}
root's avatar
root committed
31

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

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

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

50 51 52
md5sums="c220b50736f61292ed8722d5132b6a3e  gnutls-3.2.1.tar.xz"
sha256sums="abfa8165947837ada2363355ada25d913f48e6bb261f0a67f20d2fb6079e22fe  gnutls-3.2.1.tar.xz"
sha512sums="f2b255e9bb5b7f368cfaa6241975c0ed2dabae489c0621efeb14c4dd61434471610ea2a51589512c5083e44d89205bb073fe9181756b9d5fe88ecae1d7fc4218  gnutls-3.2.1.tar.xz"