diff options
author | xantares | 2015-06-08 23:45:14 +0200 |
---|---|---|
committer | xantares | 2015-06-08 23:45:14 +0200 |
commit | 1430215eac67fbf431c0f642d1e043f86013f186 (patch) | |
tree | dfeef57f637cea1ae83144b6a21a520aece77260 | |
download | aur-1430215eac67fbf431c0f642d1e043f86013f186.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..aae1b2e83b1b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = mingw-w64-curl + pkgdesc = An URL retrival utility and library (mingw-w64) + pkgver = 7.40.0 + pkgrel = 1 + url = http://curl.haxx.se + arch = any + license = MIT + makedepends = mingw-w64-configure + depends = mingw-w64-crt + depends = mingw-w64-gnutls + depends = mingw-w64-libidn + depends = mingw-w64-libssh2 + depends = mingw-w64-openssl + depends = mingw-w64-zlib + options = staticlibs + options = !strip + options = !buildflags + source = http://curl.haxx.se/download/curl-7.40.0.tar.bz2 + md5sums = SKIP + +pkgname = mingw-w64-curl + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b02a003a9663 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Contributor: ant32 <antreimer@gmail.com> + +pkgname=mingw-w64-curl +pkgver=7.40.0 +pkgrel=1 +pkgdesc="An URL retrival utility and library (mingw-w64)" +arch=('any') +url="http://curl.haxx.se" +license=("MIT") +depends=('mingw-w64-crt' + 'mingw-w64-gnutls' + 'mingw-w64-libidn' + 'mingw-w64-libssh2' + 'mingw-w64-openssl' + 'mingw-w64-zlib') +makedepends=('mingw-w64-configure') +options=('staticlibs' '!strip' '!buildflags') +source=("$url/download/curl-$pkgver.tar.bz2") +md5sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + cd "${srcdir}"/${pkgname#mingw-w64-}-${pkgver} + for _arch in ${_architectures}; do + configure_args="--with-ssl --enable-ipv6 --with-libidn --with-libssh2 --without-ca-bundle --without-random" + mkdir -p build-${_arch}-static && pushd build-${_arch}-static + ${_arch}-configure $configure_args \ + --enable-static --disable-shared + make + popd + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-configure $configure_args \ + --disable-static --enable-shared + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/${pkgname#mingw-w64-}-${pkgver}/build-${_arch}-static" + make DESTDIR="${pkgdir}" install + cd "${srcdir}/${pkgname#mingw-w64-}-${pkgver}/build-${_arch}" + make DESTDIR="${pkgdir}" install + rm "$pkgdir"/usr/${_arch}/bin/*.exe + rm -r "${pkgdir}/usr/${_arch}/share" + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |