PKGBUILD 1.02 KB
Newer Older
Jan Mette's avatar
Jan Mette committed
1
pkgname=curl
Jeff Huang's avatar
Jeff Huang committed
2
pkgver=7.61.1
3
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
4
pkgdesc="An URL retrieval utility and library"
5
arch=('x86_64')
Jan Mette's avatar
Jan Mette committed
6 7
url="http://curl.haxx.se"
license=('MIT')
Xuetian Weng's avatar
Xuetian Weng committed
8 9 10
depends=('ca-certificates' 'krb5' 'libidn' 'libssh2' 'openssl' 'zlib')
provides=('libcurl.so')
options=('strip' 'debug')
11
source=("http://curl.haxx.se/download/$pkgname-$pkgver.tar.gz"{,.asc})
Jeff Huang's avatar
Jeff Huang committed
12
md5sums=('4762f41ef0dba751d1c7a3060a1c6ec6'
13
         'SKIP')
Xuetian Weng's avatar
Xuetian Weng committed
14
validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91')  # Daniel Stenberg
15

Jan Mette's avatar
Jan Mette committed
16
build() {
Xuetian Weng's avatar
Xuetian Weng committed
17
  cd "$pkgname-$pkgver"
18

Xuetian Weng's avatar
Xuetian Weng committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
  ./configure \
      --prefix=/usr \
      --mandir=/usr/share/man \
      --disable-ldap \
      --disable-ldaps \
      --enable-ipv6 \
      --enable-manual \
      --enable-versioned-symbols \
      --enable-threaded-resolver \
      --with-gssapi \
      --with-libidn \
      --with-random=/dev/urandom \
      --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt

  make
Jan Mette's avatar
Jan Mette committed
34 35 36
}

package() {
Xuetian Weng's avatar
Xuetian Weng committed
37
  cd "$pkgname-$pkgver"
38

Xuetian Weng's avatar
Xuetian Weng committed
39
  make DESTDIR="$pkgdir" install
Samir Benmendil's avatar
Samir Benmendil committed
40

Xuetian Weng's avatar
Xuetian Weng committed
41 42
  # license
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
Jan Mette's avatar
Jan Mette committed
43
}