diff options
author | Fantix King | 2012-10-22 03:55:49 +0000 |
---|---|---|
committer | Fantix King | 2015-12-30 19:27:08 +0800 |
commit | dfa44f3b5c4daec470595658c5ba02f86d31dc10 (patch) | |
tree | 8ba85af1e26453cd75f0f3e3bb3ea8c6ddb6e41a | |
download | aur-dfa44f3b5c4daec470595658c5ba02f86d31dc10.tar.gz |
7.28.0-1.1
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e5b29590aa29 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Wed Dec 30 11:27:03 UTC 2015 +pkgbase = libx32-curl + pkgdesc = An URL retrieval utility and library (x32 ABI) + pkgver = 7.28.0 + pkgrel = 1.1 + url = http://curl.haxx.se + arch = x86_64 + license = MIT + makedepends = gcc-multilib-x32 + makedepends = ca-certificates + depends = libx32-zlib + depends = libx32-openssl + depends = libx32-libssh2 + depends = curl + options = !libtool + source = http://curl.haxx.se/download/curl-7.28.0.tar.gz + md5sums = cbdc0a79bdf6e657dd387c3d88d802e3 + +pkgname = libx32-curl + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..172a2836e88f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Upstream Maintainer: josephgbr <rafael.f.f1@gmail.com> +# Container: Florian Pritz <flo@xssn.at> +# Maintainer: Fantix King <fantix.king at gmail.com> + +_pkgbase=curl +pkgname=libx32-${_pkgbase} +pkgver=7.28.0 +pkgrel=1.1 +pkgdesc="An URL retrieval utility and library (x32 ABI)" +arch=('x86_64') +url="http://curl.haxx.se" +license=('MIT') +depends=('libx32-zlib' 'libx32-openssl' 'libx32-libssh2' "${_pkgbase}") +makedepends=('gcc-multilib-x32' 'ca-certificates') +options=('!libtool') +source=("http://curl.haxx.se/download/${_pkgbase}-${pkgver}.tar.gz") +md5sums=('cbdc0a79bdf6e657dd387c3d88d802e3') + +build() { + export CC="gcc -mx32" + export CXX="g++ -mx32" + export PKG_CONFIG_PATH="/usr/libx32/pkgconfig" + + cd ${_pkgbase}-${pkgver} + + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --disable-dependency-tracking \ + --disable-ldap \ + --disable-ldaps \ + --enable-ipv6 \ + --disable-manual \ + --enable-versioned-symbols \ + --enable-threaded-resolver \ + --without-libidn \ + --with-random=/dev/urandom \ + --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ + --libdir=/usr/libx32 + + make +} + +package() { + cd ${_pkgbase}-${pkgver} + make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}"/usr/{share,bin} + #remove all headers, except for curlbuild.h + find "${pkgdir}/usr/include/curl" -type f -not -name curlbuild.h -delete + mv "${pkgdir}/usr/include/curl/curlbuild.h" "${pkgdir}/usr/include/curl/curlbuild-x32.h" + + install -dm755 "${pkgdir}/usr/share/licenses" + ln -s ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}" +} |