summaryrefslogtreecommitdiff
path: root/community/gnurl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnurl/PKGBUILD')
-rw-r--r--community/gnurl/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/gnurl/PKGBUILD b/community/gnurl/PKGBUILD
new file mode 100644
index 000000000..d4e36360c
--- /dev/null
+++ b/community/gnurl/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 105578 2014-02-10 13:48:16Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=gnurl
+pkgver=7.34.0
+pkgrel=1
+pkgdesc="fork of libcurl, which is mostly for GNUnet"
+arch=(i686 x86_64)
+url="https://gnunet.org/gnurl"
+license=('MIT')
+depends=()
+makedepends=()
+source=(https://gnunet.org/sites/default/files/gnurl-$pkgver.tar.bz2)
+md5sums=('c9b0faf03b9286aace01fefb62069088')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-ldap \
+ --disable-ldaps \
+ --enable-ipv6 \
+ --enable-manual \
+ --enable-versioned-symbols \
+ --enable-threaded-resolver \
+ --with-gssapi \
+ --without-libidn \
+ --with-random=/dev/urandom \
+ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+ rm -rf $pkgdir/usr/share/man \
+ $pkgdir/usr/bin/curl \
+ $pkgdir/usr/share/aclocal
+ mkdir -p $pkgdir/usr/include/gnurl
+ mv $pkgdir/usr/include/curl $pkgdir/usr/include/gnurl/curl
+ sed -i 's|includedir=.*|includedir=/usr/include/gnurl|g' $pkgdir/usr/lib/pkgconfig/libgnurl.pc
+}