diff options
author | xrs <xrs@mail36.net> | 2019-09-28 19:11:28 +0200 |
---|---|---|
committer | xrs <xrs@mail36.net> | 2019-09-28 19:11:28 +0200 |
commit | 3df1c58ee5e23f59f71b3e495e6b863cda27ed5f (patch) | |
tree | b84168292e24cef299dbd51c4d65f789de86d1e5 /contrib/alpine/gnurl | |
parent | cac1c211ba0247b978961630b7ee147956b29e0a (diff) | |
download | gnunet-3df1c58ee5e23f59f71b3e495e6b863cda27ed5f.tar.gz gnunet-3df1c58ee5e23f59f71b3e495e6b863cda27ed5f.zip |
add contrib/alpine
Diffstat (limited to 'contrib/alpine/gnurl')
-rw-r--r-- | contrib/alpine/gnurl/APKBUILD | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/contrib/alpine/gnurl/APKBUILD b/contrib/alpine/gnurl/APKBUILD new file mode 100644 index 000000000..f8ff73a91 --- /dev/null +++ b/contrib/alpine/gnurl/APKBUILD | |||
@@ -0,0 +1,84 @@ | |||
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 | giturl="git://git.taler.net/gnurl.git" | ||
9 | arch="all" | ||
10 | license="MIT" | ||
11 | depends="ca-certificates gnutls libidn2 zlib" | ||
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/$pkgname-$pkgver.tar.gz" | ||
16 | builddir="$srcdir/$pkgname-$pkgver" | ||
17 | |||
18 | prepare() { | ||
19 | default_prepare | ||
20 | cd "$builddir" | ||
21 | autoreconf -vfi | ||
22 | } | ||
23 | |||
24 | build() { | ||
25 | cd "$builddir" | ||
26 | |||
27 | ./configure \ | ||
28 | --build=$CBUILD \ | ||
29 | --host=$CHOST \ | ||
30 | --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ | ||
31 | --prefix=/usr \ | ||
32 | --enable-ipv6 \ | ||
33 | --with-gnutls \ | ||
34 | --with-libidn2 \ | ||
35 | --without-libpsl \ | ||
36 | --without-libssh2 \ | ||
37 | --without-libmetalink \ | ||
38 | --without-winidn \ | ||
39 | --without-librtmp \ | ||
40 | --without-nghttp2 \ | ||
41 | --without-nss \ | ||
42 | --without-cyassl \ | ||
43 | --without-polarssl \ | ||
44 | --without-ssl \ | ||
45 | --without-winssl \ | ||
46 | --without-darwinssl \ | ||
47 | --disable-sspi \ | ||
48 | --disable-ntlm-wb \ | ||
49 | --disable-ldap \ | ||
50 | --disable-rtsp \ | ||
51 | --disable-dict \ | ||
52 | --disable-telnet \ | ||
53 | --disable-tftp \ | ||
54 | --disable-pop3 \ | ||
55 | --disable-imap \ | ||
56 | --disable-smtp \ | ||
57 | --disable-gopher \ | ||
58 | --disable-file \ | ||
59 | --disable-ftp \ | ||
60 | --disable-smb \ | ||
61 | --disable-ares | ||
62 | make | ||
63 | } | ||
64 | |||
65 | check() { | ||
66 | cd "$builddir" | ||
67 | make -C tests nonflaky-test | ||
68 | } | ||
69 | |||
70 | package() { | ||
71 | cd "$builddir" | ||
72 | make DESTDIR="$pkgdir" install | ||
73 | #install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING | ||
74 | } | ||
75 | |||
76 | libgnurl() { | ||
77 | pkgdesc="curl library with only HTTP/HTTPS support and GnuTLS" | ||
78 | |||
79 | mkdir -p "$subpkgdir"/usr | ||
80 | mv "$pkgdir"/usr/lib "$subpkgdir"/usr | ||
81 | } | ||
82 | |||
83 | |||
84 | sha512sums="51aa71352dfe2e65dbcf542cb616af1eaa7e80fbc4ddb455a338e74eea245724ac1fa7ff226c418101e8ba298a8f85c2be9e7d9190a57c66e2e8c65d0c5186f8 gnurl-7.65.3.tar.gz" | ||