1
1
# Maintainer: Alexey Pavlov <[email protected] >
2
+ # Contributor: Martell Malone <[email protected] >
2
3
# Contributor: Zion Nimchuk <[email protected] >
3
4
# Contributor: Mateusz Mikuła <[email protected]
4
5
6
+
5
7
_realname=rust
6
8
pkgbase=mingw-w64-${_realname}
7
9
pkgname=" ${MINGW_PACKAGE_PREFIX} -${_realname} "
8
- pkgver=1.16 .0
10
+ pkgver=1.18 .0
9
11
pkgrel=1
10
12
pkgdesc=" Systems programming language focused on safety, speed and concurrency (mingw-w64)"
11
13
arch=(' any' )
@@ -15,6 +17,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
15
17
makedepends=(" bison"
16
18
" flex"
17
19
" git"
20
+ " diffutils"
18
21
" ${MINGW_PACKAGE_PREFIX} -cmake>=3.4.3"
19
22
" ${MINGW_PACKAGE_PREFIX} -curl"
20
23
" ${MINGW_PACKAGE_PREFIX} -jemalloc"
@@ -26,21 +29,22 @@ makedepends=("bison"
26
29
options=(' !makeflags' ' staticlibs' )
27
30
# install=rust.install
28
31
source=(" https://static.rust-lang.org/dist/${_realname} c-${pkgver} -src.tar.gz"
29
- " git+https://github.com/rust-lang/cargo.git#tag=0.17 .0"
32
+ " git+https://github.com/rust-lang/cargo.git#tag=0.19 .0"
30
33
" force-curl-rust.patch"
31
34
" fix-jemalloc.patch"
32
- " 0001-add-missing-libs .patch" )
33
- sha256sums=(' f966b31eb1cd9bd2df817c391a338eeb5b9253ae0a19bf8a11960c560f96e8b4 '
35
+ " 0001-bootstrap-use-stable-release-for-stage0 .patch" )
36
+ sha256sums=(' d2dc36e99b9e2269488b2bcddde43c234e6bde03edf70cba82a027ff49c36111 '
34
37
' SKIP'
35
- ' 83dee26bafd634eea2a1e630f757a3a38a419157560b4889437ec08d3e5fb9bb '
38
+ ' b2a16e472e8d162affb3f56410a1dc971ae918ade099a2ef33dcaee10e449c68 '
36
39
' 7fabd72d1611ef1e46191c245d356d88909ea19062ea6999e1e1a049ebe8784d'
37
- ' 919976d50c0538e5f240ed85063c3d91cf5720c97c20734ebc14caa74ee554d3' )
40
+ ' d8d9b70c453403f2985ced8f6baf8dec0518741b7398fd27196e24e189a0b3ef'
41
+ ' 3c56719f4fec822277d37f0c56aef230e4b8033e005d538037da4632cdc064ba' )
38
42
39
43
prepare () {
40
44
cd ${srcdir} /${_realname} c-${pkgver} -src
41
45
patch -p1 -i " ${srcdir} /force-curl-rust.patch"
42
46
patch -p1 -i " ${srcdir} /fix-jemalloc.patch"
43
- patch -p1 -i " ${srcdir} /0001-add-missing-libs .patch"
47
+ patch -p1 -i " ${srcdir} /0001-bootstrap-use-stable-release-for-stage0 .patch"
44
48
45
49
cd ${srcdir} /cargo
46
50
@@ -64,14 +68,12 @@ build() {
64
68
--target=$OSTYPE \
65
69
--release-channel=stable \
66
70
--enable-ninja \
67
- --enable-local-rust \
68
71
--disable-codegen-tests \
69
72
--jemalloc-root=${MINGW_PREFIX} /lib \
70
73
--local-rust-root=$( cygpath -m ${MINGW_PREFIX} )
71
74
# LLVM 4.0 is unsupported
72
75
# --llvm-root=${MINGW_PREFIX} \
73
76
74
- export RUSTFLAGS=" -lffi -lgcc_eh -lpthread"
75
77
python2 ../${_realname} c-${pkgver} -src/x.py build
76
78
}
77
79
0 commit comments