Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
curl: ship stubs for libidn and librtmp (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 14, 2019
1 parent bf0e4ee commit 8d815ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mingw-w64-curl/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _realname=curl
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}${_namesuff}"
pkgver=7.64.1
pkgrel=9201
pkgrel=9202
pkgdesc="Command line tool and library for transferring data with URLs. (mingw-w64)"
arch=('any')
url="https://curl.haxx.se/"
Expand All @@ -22,6 +22,11 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
depends=("${MINGW_PACKAGE_PREFIX}-libssh2"
"${MINGW_PACKAGE_PREFIX}-zlib"
"${MINGW_PACKAGE_PREFIX}-openssl")

# We include stubs for these libs because many packages have -lidn -lrtmp harcoded
conflicts=("${MINGW_PACKAGE_PREFIX}-rtmpdump-git"
"${MINGW_PACKAGE_PREFIX}-libidn")

if [ -n "${_namesuff}" ]; then
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}")
Expand Down Expand Up @@ -111,4 +116,8 @@ package() {

local PREFIX_DEPS=$(cygpath -am ${MINGW_PREFIX})
sed -s "s|${PREFIX_DEPS}|${MINGW_PREFIX}|g" -i ${pkgdir}${MINGW_PREFIX}/bin/curl-config

# Legacy things because old packages hardcode -lrtm -lidn
ar r "${pkgdir}${MINGW_PREFIX}/lib/librtmp.a"
ar r "${pkgdir}${MINGW_PREFIX}/lib/libidn.a"
}

0 comments on commit 8d815ec

Please sign in to comment.