1
1
# Maintainer: Quinton Miller <[email protected] >
2
2
3
- _bootstrap=0
3
+ _bootstrap=1
4
4
_realname=crystal
5
5
pkgbase=" mingw-w64-${_realname} "
6
6
pkgname=" ${MINGW_PACKAGE_PREFIX} -${_realname} "
7
7
pkgver=1.15.1
8
- pkgrel=2
8
+ pkgrel=3
9
9
pkgdesc=" Fast and statically typed, compiled language with Ruby-like syntax (mingw-w64)"
10
10
arch=(' any' )
11
11
mingw_arch=(' ucrt64' ' mingw64' ' clang64' )
@@ -31,15 +31,19 @@ depends=(
31
31
" ${MINGW_PACKAGE_PREFIX} -zlib"
32
32
)
33
33
makedepends=(
34
- " git"
35
34
" ${MINGW_PACKAGE_PREFIX} -llvm"
36
35
$( (( _bootstrap )) || echo " ${MINGW_PACKAGE_PREFIX} -crystal" )
36
+ " git"
37
37
)
38
38
checkdepends=(
39
39
" ${MINGW_PACKAGE_PREFIX} -lld" # needed for linking std_spec
40
40
)
41
- source=(" $pkgname -$pkgver ::git+${msys2_repository_url} .git#tag=${pkgver} " )
42
- sha256sums=(' 626fed60399d7f1dc83e2e5a2ecde20d235e19a3dcf6d70d6f52ec4de063b32b' )
41
+ source=(" ${_realname} ::git+${msys2_repository_url} .git#tag=${pkgver} "
42
+ " 001-support-llvm-20.patch::https://github.com/crystal-lang/crystal/commit/1c03dfa3.patch"
43
+ " 002-fix-llvm-version-detection.patch::https://github.com/crystal-lang/crystal/commit/1fafbb2b.patch" )
44
+ sha256sums=(' 626fed60399d7f1dc83e2e5a2ecde20d235e19a3dcf6d70d6f52ec4de063b32b'
45
+ ' 23957732539eb4dc1b2cce03ebdaa169804fade3c0ba81a53ad430556989e340'
46
+ ' f02c6393f6a4bf8fd92b0fb42131b0e45c61b30d86441458b370d7c7ebe6a816' )
43
47
44
48
if (( _bootstrap ))
45
49
then
49
53
fi
50
54
51
55
prepare () {
52
- cd " $pkgname - $pkgver "
53
- if test true ! = " $( git config core.symlinks ) "
54
- then
56
+ cd " ${_realname} "
57
+
58
+ if test true ! = " $( git config core.symlinks ) " ; then
55
59
git config core.symlinks true &&
56
60
MSYS=' winsymlinks:nativestrict' git restore --source=HEAD :/
57
61
fi
62
+
63
+ patch -p1 -i " ${srcdir} " /001-support-llvm-20.patch
64
+ patch -p1 -i " ${srcdir} " /002-fix-llvm-version-detection.patch
58
65
}
59
66
60
67
build () {
61
- cd " $pkgname -$pkgver "
62
- if (( _bootstrap ))
63
- then
68
+ cd " ${_realname} "
69
+ if (( _bootstrap )) ; then
64
70
CRYSTAL=" $srcdir /bin/crystal.exe" make interpreter=1 release=1
65
71
else
66
72
make interpreter=1 release=1
67
73
fi
68
74
}
69
75
70
76
check () {
71
- cd " $pkgname - $pkgver "
77
+ cd " ${_realname} "
72
78
# the full suite is run on the crystal-lang/crystal repo's own CI
73
79
CRYSTAL_SPEC_COMPILER_BIN=" $( pwd) /.build/crystal.exe" make std_spec
74
80
}
75
81
76
82
package () {
77
- cd " $pkgname - $pkgver "
83
+ cd " ${_realname} "
78
84
make install DESTDIR=" $pkgdir " PREFIX=" ${MINGW_PREFIX} " deref_symlinks=1
79
85
}
0 commit comments