PKGBUILD 1.46 KB
Newer Older
1 2 3
#
# Core packages for Chakra, part of chakra-project.org
#
4
# maintainer abveritas[at]chakra-project[dot]org>
Jan Mette's avatar
Jan Mette committed
5 6

pkgname=curl
Fabian's avatar
Fabian committed
7
pkgver=7.31.0
8
pkgrel=1
Jan Mette's avatar
Jan Mette committed
9
pkgdesc="An URL retrival utility and library"
10
arch=('x86_64')
Jan Mette's avatar
Jan Mette committed
11 12
url="http://curl.haxx.se"
license=('MIT')
13
depends=('zlib' 'openssl' 'bash' 'ca-certificates' 'libssh2')
Jan Mette's avatar
Jan Mette committed
14
options=('!libtool')
15 16
source=("http://curl.haxx.se/download/${pkgname}-${pkgver}.tar.bz2"
        'curlbuild.h')
Fabian's avatar
Fabian committed
17 18
md5sums=('b7bea20579ac2f696338ae03f2c19ba5'
         '751bd433ede935c8fae727377625a8ae')
19 20

_curlbuild=curlbuild-64.h
21

Jan Mette's avatar
Jan Mette committed
22
build() {
23
    cd ${srcdir}/${pkgname}-${pkgver}
24

25 26 27 28 29 30 31 32 33 34
    ./configure \
        --with-random=/dev/urandom \
        --prefix=/usr \
        --mandir=/usr/share/man \
        --disable-dependency-tracking \
        --enable-ipv6 \
        --disable-ldaps \
        --disable-ldap \
        --enable-manual \
        --enable-versioned-symbols \
35
        --enable-threaded-resolver \
36 37 38 39
        --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
        --without-libidn \
        --enable-threaded-resolver
    make
Jan Mette's avatar
Jan Mette committed
40 41 42
}

package() {
43
    cd ${srcdir}/${pkgname}-${pkgver}
44

45 46 47 48 49 50 51
    make DESTDIR=${pkgdir} install
    install -Dm644 COPYING \
        ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
    install -Dm644 docs/libcurl/libcurl.m4 \
        ${pkgdir}/usr/share/aclocal/libcurl.m4
    mv "${pkgdir}/usr/include/curl/curlbuild.h" "${pkgdir}/usr/include/curl/${_curlbuild}"
    install -m 644 ${srcdir}/curlbuild.h "${pkgdir}/usr/include/curl/curlbuild.h"
Jan Mette's avatar
Jan Mette committed
52
}