summaryrefslogtreecommitdiff
path: root/community/gnurl/PKGBUILD
blob: d4e36360c0ecf28dc7a8beff9c4ed11ffd6e2d9d (plain)
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
# $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
}