blob: 47a2683479350d3093aceeb7bf0b96ac70323c26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: pingplug < aur at pingplug dot me >
# Contributor: Sergej Pupykin < pupykin dot s+arch at gmail dot com >
# Contributor: ant32 < antreimer at gmail dot com >
# Contributor: rubenvb < vanboxem dot ruben at gmail dot com >
# Contributor: rkitover < rkitover at gmail dot com >
_pkgver=9.0.0
_targets="i686-w64-mingw32 x86_64-w64-mingw32"
pkgname=mingw-w64-crt-git
pkgver=9.0.0.20211016
pkgrel=1
pkgdesc="MinGW-w64 CRT for Windows (git version)"
arch=('any')
url="https://www.mingw-w64.org/"
license=('custom')
groups=('mingw-w64-toolchain' 'mingw-w64')
makedepends=('git'
'mingw-w64-gcc-base'
'mingw-w64-binutils'
"mingw-w64-headers-git>=${pkgver}")
provides=("mingw-w64-crt=${pkgver}")
conflicts=('mingw-w64-crt')
options=('!strip' 'staticlibs' '!buildflags')
source=("git+https://git.code.sf.net/p/mingw-w64/mingw-w64")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/mingw-w64"
echo "${_pkgver}.`git log -1 --date=short --format=%cd | sed s/-//g`"
}
prepare() {
cd "${srcdir}/mingw-w64/mingw-w64-crt"
aclocal
automake
}
build() {
cd "${srcdir}"
for _target in ${_targets}; do
msg "Building ${_target} CRT"
if [ ${_target} == "i686-w64-mingw32" ]; then
_crt_configure_args="--disable-lib64 --enable-lib32"
elif [ ${_target} == "x86_64-w64-mingw32" ]; then
_crt_configure_args="--disable-lib32 --enable-lib64"
fi
mkdir -p "crt-${_target}" && pushd "crt-${_target}"
../mingw-w64/mingw-w64-crt/configure \
--prefix=/usr/${_target} \
--host=${_target} \
--enable-wildcard \
${_crt_configure_args}
make
popd
done
}
package() {
cd "${srcdir}"
for _target in ${_targets}; do
msg "Installing ${_target} crt"
pushd "crt-${_target}"
make DESTDIR="${pkgdir}" install
popd
done
}
# vim:set ts=2 sw=2 et:
|