aboutsummaryrefslogtreecommitdiff
path: root/contrib/alpine/gnurl
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2019-09-28 19:11:28 +0200
committerxrs <xrs@mail36.net>2019-09-28 19:11:28 +0200
commit3df1c58ee5e23f59f71b3e495e6b863cda27ed5f (patch)
treeb84168292e24cef299dbd51c4d65f789de86d1e5 /contrib/alpine/gnurl
parentcac1c211ba0247b978961630b7ee147956b29e0a (diff)
downloadgnunet-3df1c58ee5e23f59f71b3e495e6b863cda27ed5f.tar.gz
gnunet-3df1c58ee5e23f59f71b3e495e6b863cda27ed5f.zip
add contrib/alpine
Diffstat (limited to 'contrib/alpine/gnurl')
-rw-r--r--contrib/alpine/gnurl/APKBUILD84
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>
3pkgname=gnurl
4pkgver=7.65.3
5pkgrel=0
6pkgdesc="curl with only HTTP/HTTPS support and GnuTLS"
7url="https://gnunet.org/en/gnurl.html"
8giturl="git://git.taler.net/gnurl.git"
9arch="all"
10license="MIT"
11depends="ca-certificates gnutls libidn2 zlib"
12depends_dev="gnutls-dev libidn2-dev zlib-dev"
13makedepends="$depends_dev autoconf automake libtool perl pkgconf python3"
14subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc libgnurl"
15source="https://ftp.gnu.org/gnu/gnunet/$pkgname-$pkgver.tar.gz"
16builddir="$srcdir/$pkgname-$pkgver"
17
18prepare() {
19 default_prepare
20 cd "$builddir"
21 autoreconf -vfi
22}
23
24build() {
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
65check() {
66 cd "$builddir"
67 make -C tests nonflaky-test
68}
69
70package() {
71 cd "$builddir"
72 make DESTDIR="$pkgdir" install
73 #install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
74}
75
76libgnurl() {
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
84sha512sums="51aa71352dfe2e65dbcf542cb616af1eaa7e80fbc4ddb455a338e74eea245724ac1fa7ff226c418101e8ba298a8f85c2be9e7d9190a57c66e2e8c65d0c5186f8 gnurl-7.65.3.tar.gz"