aboutsummaryrefslogtreecommitdiff
path: root/contrib/alpine/gnurl/APKBUILD
blob: f8ff73a916a681c93915d7ff40257ec473fb62d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Contributor: xrs <xrs@mail36.net>
# Maintainer: xrs <xrs@mail36.net>
pkgname=gnurl
pkgver=7.65.3
pkgrel=0
pkgdesc="curl with only HTTP/HTTPS support and GnuTLS"
url="https://gnunet.org/en/gnurl.html"
giturl="git://git.taler.net/gnurl.git"
arch="all"
license="MIT"
depends="ca-certificates gnutls libidn2 zlib"
depends_dev="gnutls-dev libidn2-dev zlib-dev"
makedepends="$depends_dev autoconf automake libtool perl pkgconf python3"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc libgnurl"
source="https://ftp.gnu.org/gnu/gnunet/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	autoreconf -vfi
}

build() {
	cd "$builddir"
		
  	./configure \
		--build=$CBUILD \
		--host=$CHOST \
                --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
		--prefix=/usr \
		--enable-ipv6 \
		--with-gnutls \
                --with-libidn2 \
		--without-libpsl \
		--without-libssh2 \
		--without-libmetalink \
                --without-winidn \
                --without-librtmp \
                --without-nghttp2 \
                --without-nss \
                --without-cyassl \
                --without-polarssl \
                --without-ssl \
                --without-winssl \
                --without-darwinssl \
                --disable-sspi \
                --disable-ntlm-wb \
                --disable-ldap \
                --disable-rtsp \
                --disable-dict \
                --disable-telnet \
                --disable-tftp \
                --disable-pop3 \
                --disable-imap \
                --disable-smtp \
                --disable-gopher \
                --disable-file \
                --disable-ftp \
                --disable-smb \
                --disable-ares
        make
}

check() {
	cd "$builddir"
	make -C tests nonflaky-test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install 
        #install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

libgnurl() {
	pkgdesc="curl library with only HTTP/HTTPS support and GnuTLS"

	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}


sha512sums="51aa71352dfe2e65dbcf542cb616af1eaa7e80fbc4ddb455a338e74eea245724ac1fa7ff226c418101e8ba298a8f85c2be9e7d9190a57c66e2e8c65d0c5186f8  gnurl-7.65.3.tar.gz"