diff options
Diffstat (limited to 'contrib/packages/alpine/gnurl/APKBUILD')
-rw-r--r-- | contrib/packages/alpine/gnurl/APKBUILD | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/contrib/packages/alpine/gnurl/APKBUILD b/contrib/packages/alpine/gnurl/APKBUILD new file mode 100644 index 000000000..24a5ee866 --- /dev/null +++ b/contrib/packages/alpine/gnurl/APKBUILD | |||
@@ -0,0 +1,78 @@ | |||
1 | # Contributor: xrs <xrs@mail36.net> | ||
2 | # Maintainer: xrs <xrs@mail36.net> | ||
3 | pkgname=gnurl | ||
4 | pkgver=7.65.3 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="curl with only HTTP/HTTPS support and GnuTLS" | ||
7 | url="https://gnunet.org/en/gnurl.html" | ||
8 | arch="all" | ||
9 | license="MIT" | ||
10 | #depends="ca-certificates gnutls libidn2 zlib" | ||
11 | depends="ca-certificates" | ||
12 | depends_dev="gnutls-dev libidn2-dev zlib-dev" | ||
13 | makedepends="$depends_dev autoconf automake libtool perl pkgconf python3" | ||
14 | subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc libgnurl" | ||
15 | source="https://ftp.gnu.org/gnu/gnunet/gnurl-$pkgver.tar.gz" | ||
16 | |||
17 | prepare() { | ||
18 | default_prepare | ||
19 | autoreconf -vfi | ||
20 | } | ||
21 | |||
22 | build() { | ||
23 | ./configure \ | ||
24 | --build=$CBUILD \ | ||
25 | --host=$CHOST \ | ||
26 | --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ | ||
27 | --prefix=/usr \ | ||
28 | --disable-static \ | ||
29 | --enable-ipv6 \ | ||
30 | --with-gnutls \ | ||
31 | --with-libidn2 \ | ||
32 | --without-libpsl \ | ||
33 | --without-libssh2 \ | ||
34 | --without-libmetalink \ | ||
35 | --without-winidn \ | ||
36 | --without-librtmp \ | ||
37 | --without-nghttp2 \ | ||
38 | --without-nss \ | ||
39 | --without-cyassl \ | ||
40 | --without-polarssl \ | ||
41 | --without-ssl \ | ||
42 | --without-winssl \ | ||
43 | --without-darwinssl \ | ||
44 | --disable-sspi \ | ||
45 | --disable-ntlm-wb \ | ||
46 | --disable-ldap \ | ||
47 | --disable-rtsp \ | ||
48 | --disable-dict \ | ||
49 | --disable-telnet \ | ||
50 | --disable-tftp \ | ||
51 | --disable-pop3 \ | ||
52 | --disable-imap \ | ||
53 | --disable-smtp \ | ||
54 | --disable-gopher \ | ||
55 | --disable-file \ | ||
56 | --disable-ftp \ | ||
57 | --disable-smb \ | ||
58 | --disable-ares | ||
59 | make | ||
60 | } | ||
61 | |||
62 | check() { | ||
63 | make -C tests nonflaky-test | ||
64 | } | ||
65 | |||
66 | package() { | ||
67 | make DESTDIR="$pkgdir" install | ||
68 | } | ||
69 | |||
70 | libgnurl() { | ||
71 | pkgdesc="curl library with only HTTP/HTTPS support and GnuTLS" | ||
72 | |||
73 | mkdir -p "$subpkgdir"/usr | ||
74 | mv "$pkgdir"/usr/lib "$subpkgdir"/usr | ||
75 | } | ||
76 | |||
77 | |||
78 | sha512sums="51aa71352dfe2e65dbcf542cb616af1eaa7e80fbc4ddb455a338e74eea245724ac1fa7ff226c418101e8ba298a8f85c2be9e7d9190a57c66e2e8c65d0c5186f8 gnurl-7.65.3.tar.gz" | ||