APKBUILD 1.04 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=2.12.16
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=
11
depends_dev="libgcrypt-dev libgpg-error-dev zlib-dev libtasn1-dev p11-kit-dev"
12
makedepends="$depends_dev"
root's avatar
root committed
13
install=
14
subpackages="$pkgname-doc $pkgname-dev $pkgname-utils"
root's avatar
root committed
15 16 17 18 19 20 21 22 23
source="http://ftp.gnu.org/pub/gnu/gnutls/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
24 25 26 27 28
		--with-included-libcfg \
		--with-libgcrypt \
		--disable-rpath \
		--disable-static \
		|| 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/
}
43
md5sums="0414bba9760201f27d66787997cbadfb  gnutls-2.12.16.tar.bz2"