core/curl/PKGBUILD

49 lines
1.2 KiB
Bash
Raw Normal View History

2010-03-13 23:54:19 +08:00
pkgname=curl
2015-04-29 22:11:10 +08:00
pkgver=7.42.1
2014-11-14 18:34:17 +08:00
pkgrel=1
2010-03-13 23:54:19 +08:00
pkgdesc="An URL retrival utility and library"
arch=('x86_64')
2010-03-13 23:54:19 +08:00
url="http://curl.haxx.se"
license=('MIT')
2014-11-14 18:34:17 +08:00
depends=('ca-certificates' 'krb5' 'libssh2' 'libidn' 'openssl' 'zlib')
source=("http://curl.haxx.se/download/${pkgname}-${pkgver}.tar.bz2"
'curlbuild.h')
2015-04-29 22:11:10 +08:00
md5sums=('296945012ce647b94083ed427c1877a8'
2013-07-20 02:10:29 +08:00
'751bd433ede935c8fae727377625a8ae')
2010-03-13 23:54:19 +08:00
build() {
2014-11-14 18:34:17 +08:00
cd ${pkgname}-${pkgver}
2010-05-16 23:08:55 +08:00
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-ldap \
2014-11-14 18:34:17 +08:00
--disable-ldaps \
--enable-ipv6 \
--enable-manual \
--enable-threaded-resolver \
2014-11-14 18:34:17 +08:00
--enable-versioned-symbols \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
2014-11-14 18:34:17 +08:00
--with-gssapi \
--with-libidn \
--with-random=/dev/urandom
make
2010-04-04 22:20:41 +08:00
}
package() {
2014-11-14 18:34:17 +08:00
cd ${pkgname}-${pkgver}
2010-05-16 23:08:55 +08:00
make DESTDIR=${pkgdir} install
2014-11-14 18:34:17 +08:00
# license
install -Dm644 COPYING \
${pkgdir}/usr/share/licenses/${pkgname}/COPYING
2014-11-14 18:34:17 +08:00
# devel
local _curlbuild=curlbuild-64.h
mv "${pkgdir}/usr/include/curl/curlbuild.h" \
"${pkgdir}/usr/include/curl/${_curlbuild}"
install -m 644 ${srcdir}/curlbuild.h \
"${pkgdir}/usr/include/curl/curlbuild.h"
2010-03-13 23:54:19 +08:00
}