Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alesar1:mingw-w64
mingw-w64-curl
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package mingw-w64-curl
# Maintainer: drakkan <nicola.murino at gmail dot com> # Contributor: Andrew Sun <adsun701 at gmail dot com> # Contributor: ant32 <antreimer at gmail dot com> pkgname=mingw-w64-curl pkgver=8.8.0 pkgrel=2 pkgdesc="An URL retrival utility and library (mingw-w64)" arch=('any') url="https://curl.haxx.se" license=("MIT") depends=('mingw-w64-crt' 'mingw-w64-libidn2' 'mingw-w64-libpsl' 'mingw-w64-libssh2' 'mingw-w64-openssl' 'mingw-w64-libnghttp2' 'mingw-w64-zstd' 'mingw-w64-brotli' 'mingw-w64-zlib') makedepends=('mingw-w64-configure') options=('staticlibs' '!strip' '!buildflags') source=("${url}/download/curl-${pkgver}.tar.xz" "0002-nghttp2-static.patch" "0004-more-static-fixes.patch") sha256sums=('0f58bb95fc330c8a46eeb3df5701b0d90c9d9bfcc42bd1cd08791d12551d4400' '3ee9c75a3046f86f91290c143170179230c9adc6eabfbb79eb26f708a165b719' '590eb65e90e756eaad993d52a101f29091ada2c742c5a607684e88fc5c560d54') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" prepare() { cd "${srcdir}"/${pkgname#mingw-w64-}-${pkgver} patch -Np1 -i "${srcdir}/0002-nghttp2-static.patch" patch -Np1 -i "${srcdir}/0004-more-static-fixes.patch" autoreconf -vfi } build() { cd "${srcdir}"/${pkgname#mingw-w64-}-${pkgver} export CHOST=$(./config.guess) for _arch in ${_architectures}; do configure_args="--with-openssl --enable-ipv6 --with-libidn2 --with-libssh2 --without-ca-bundle --without-random --with-libpsl --with-brotli --with-zstd" 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/*.exe ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a done } # vim: ts=2 sw=2 et:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor