summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD62
1 files changed, 38 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 172a2836e88..dbf02de3392 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,35 @@
-# Upstream Maintainer: josephgbr <rafael.f.f1@gmail.com>
-# Container: Florian Pritz <flo@xssn.at>
-# Maintainer: Fantix King <fantix.king at gmail.com>
+# $Id: PKGBUILD 153571 2015-12-17 12:44:34Z fyan $
+# Maintainer: Daniel Wallace <danielwallace@aur.archlinux.org>
+# Contributor: Dave Reisner <dreisner@archlinux.org>
+# Contributor: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Eric Belanger <eric@archlinux.org>
+# Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+# x32 Maintainer: Fantix King <fantix.king at gmail.com>
-_pkgbase=curl
-pkgname=libx32-${_pkgbase}
-pkgver=7.28.0
+pkgname=libx32-curl
+_pkgname=curl
+pkgver=7.46.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')
+depends=('libx32-libssh2' 'libx32-krb5' 'libx32-libidn' "${_pkgname}")
+source=("http://curl.haxx.se/download/$_pkgname-$pkgver.tar.gz"{,.asc}
+ curlbuild-stub.h)
+md5sums=('230e682d59bf8ab6eca36da1d39ebd75'
+ 'SKIP'
+ 'f8006c96c36ab7049412350968eb0389')
+ validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91') # Daniel Stenberg
build() {
+ cd "$_pkgname-$pkgver"
+
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 \
@@ -30,26 +37,33 @@ build() {
--disable-ldap \
--disable-ldaps \
--enable-ipv6 \
- --disable-manual \
+ --enable-manual \
--enable-versioned-symbols \
--enable-threaded-resolver \
- --without-libidn \
+ --with-gssapi \
+ --with-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
+ install="${pkgname}.install"
+
+ cd "$_pkgname-$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"
+
+ # license
+ install -d "$pkgdir/usr/share/licenses"
+ ln -s "$_pkgname" "$pkgdir/usr/share/licenses/$pkgname"
- install -dm755 "${pkgdir}/usr/share/licenses"
- ln -s ${_pkgbase} "${pkgdir}/usr/share/licenses/${pkgname}"
+ # devel
+ find "${pkgdir}/usr/include/curl" -type f -not -name curlbuild.h -delete
+ install -Dm644 "${srcdir}/curlbuild-stub.h" "${pkgdir}/usr/include/_$pkgname/curlbuild-stub.h"
+ mv "$pkgdir/usr/include/curl/curlbuild.h" "$pkgdir/usr/include/$_pkgname/curlbuild-x32.h"
}