Skip to content

Commit

Permalink
should work
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Oct 14, 2020
1 parent 7acf419 commit b5f0661
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mingw-w64-rust/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _realname=rust
_bootstrapping=yes
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.46.0
pkgver=1.47.0
pkgrel=1
pkgdesc="Systems programming language focused on safety, speed and concurrency (mingw-w64)"
arch=('any')
Expand All @@ -29,7 +29,7 @@ makedepends=("bison"
"${MINGW_PACKAGE_PREFIX}-zlib")
options=('staticlibs')
#install=rust.install
source=("https://static.rust-lang.org/dist/${_realname}c-${pkgver}-src.tar.gz"{,.asc}
source=("https://dev-static.rust-lang.org/dist/${_realname}c-${pkgver}-src.tar.gz"{,.asc}
"force-curl-rust.patch"
"0001-add-missing-libs.patch"
"0002-fix-install-msys2.patch"
Expand All @@ -38,7 +38,7 @@ source=("https://static.rust-lang.org/dist/${_realname}c-${pkgver}-src.tar.gz"{,
"0005-win32-config.patch"
"72049.patch"
"75603.patch")
sha256sums=('2d6a3b7196db474ba3f37b8f5d50a1ecedff00738d7846840605b42bfc922728'
sha256sums=('3185df064c4747f2c8b9bb8c4468edd58ff4ad6d07880c879ac1b173b768d81d'
'SKIP'
'500f9bd7452c8d35115ad823d8fcb9bda8b86878c2a0f57f9e6a72fc4ba9a8f5'
'336b9b5a5d094404846d563a29a0f51018dcadd76665adea52c0a0e44cc1e69b'
Expand All @@ -62,8 +62,8 @@ prepare() {
#patch -p1 -i "${srcdir}/0003-link-with-system-curl.patch"
patch -p1 -i "${srcdir}/0004-unbundle-gcc.patch"
patch -p1 -i "${srcdir}/0005-win32-config.patch"
patch -p1 -i "${srcdir}/72049.patch"
patch -p1 -i "${srcdir}/75603.patch"
# patch -p1 -i "${srcdir}/72049.patch"
# patch -p1 -i "${srcdir}/75603.patch"
}

build() {
Expand All @@ -78,7 +78,7 @@ build() {
_rust_conf+=("--local-rust-root=$(cygpath -m ${MINGW_PREFIX})")
fi

export LIBSSH2_SYS_USE_PKG_CONFIG=1
# export LIBSSH2_SYS_USE_PKG_CONFIG=1

MSYS2_ARG_CONV_EXCL="--prefix;--sysconfdir;--localstatedir" \
../${_realname}c-${pkgver}-src/configure \
Expand Down Expand Up @@ -107,7 +107,7 @@ build() {
check() {
cd "${srcdir}/${CARCH}"

export LIBSSH2_SYS_USE_PKG_CONFIG=1
# export LIBSSH2_SYS_USE_PKG_CONFIG=1

# it might fail on Windows
DEP_NGHTTP_ROOT=${MINGW_PREFIX} \
Expand All @@ -119,7 +119,7 @@ check() {
package() {
cd "${srcdir}/${CARCH}"

export LIBSSH2_SYS_USE_PKG_CONFIG=1
# export LIBSSH2_SYS_USE_PKG_CONFIG=1

DEP_NGHTTP_ROOT=${MINGW_PREFIX} \
DEP_OPENSSL_ROOT=${MINGW_PREFIX} \
Expand Down

0 comments on commit b5f0661

Please sign in to comment.