Add mingw-w64-cross-mingwarm64-tools
This commit is contained in:
parent
3a0c5001ea
commit
25e70e353f
1
mingw-w64-cross-mingwarm64-tools/.gitignore
vendored
Normal file
1
mingw-w64-cross-mingwarm64-tools/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
mingw-w64/
|
||||
66
mingw-w64-cross-mingwarm64-tools/PKGBUILD
Normal file
66
mingw-w64-cross-mingwarm64-tools/PKGBUILD
Normal file
@ -0,0 +1,66 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
# Contributor: Martell Malone <martellmalone@gmail.com>
|
||||
|
||||
_realname=tools
|
||||
_mingw_suff=mingw-w64-cross
|
||||
pkgbase="${_mingw_suff}-mingwarm64-${_realname}"
|
||||
_targetpkgs=("${_mingw_suff}-mingwarm64-${_realname}")
|
||||
pkgname=("${_targetpkgs[@]}")
|
||||
pkgdesc="MinGW-w64 headers for cross-compiler"
|
||||
pkgver=12.0.0dev
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://www.mingw-w64.org/"
|
||||
msys2_repository_url="https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-tools"
|
||||
license=('custom')
|
||||
groups=("${_mingw_suff}-toolchain" "${_mingw_suff}")
|
||||
makedepends=('git' 'autotools' "${_mingw_suff}-mingwarm64-gcc" "${_mingw_suff}-mingwarm64-binutils")
|
||||
options=('!strip' '!libtool' '!emptydirs' '!buildflags')
|
||||
_commit='a1bf19077c012284d0398177799ea0476c1a1e79'
|
||||
source=("mingw-w64"::"git+https://github.com/Windows-on-ARM-Experiments/mingw-woarm64.git#commit=$_commit")
|
||||
sha256sums=('dca6aaa5ababa53aaee63f5f0ebbf4570896b91e2ff41bff055dc91af75f2e34')
|
||||
msys2_references=(
|
||||
# doesn't exist in arch, this is the next best thing
|
||||
'archlinux: mingw-w64-headers'
|
||||
)
|
||||
_tools="gendef genidl genpeimg" #widl
|
||||
|
||||
_build() {
|
||||
_target=$1
|
||||
msg "Configuring ${_target} tools"
|
||||
for cur in ${_tools}; do
|
||||
mkdir -p ${srcdir}/${cur}-${_target} && cd ${srcdir}/${cur}-${_target}
|
||||
unset CC
|
||||
${srcdir}/mingw-w64/mingw-w64-tools/${cur}/configure \
|
||||
--build=${CHOST} \
|
||||
--host=${_target} \
|
||||
--prefix=/opt/${_target}
|
||||
make
|
||||
done
|
||||
}
|
||||
|
||||
_package() {
|
||||
_target=$1
|
||||
msg "Installing ${_target} tools"
|
||||
for cur in ${_tools}; do
|
||||
cd ${srcdir}/${cur}-${_target}
|
||||
make DESTDIR=${pkgdir} install
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
for _pkg in "${_targetpkgs[@]}"; do
|
||||
case "$_pkg" in
|
||||
"${_mingw_suff}-ucrt64-${_realname}") _build "x86_64-w64-mingw32ucrt" ;;
|
||||
"${_mingw_suff}-mingw32-${_realname}") _build "i686-w64-mingw32" ;;
|
||||
"${_mingw_suff}-mingw64-${_realname}") _build "x86_64-w64-mingw32" ;;
|
||||
"${_mingw_suff}-mingwarm64-${_realname}") _build "aarch64-w64-mingw32" ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
package_mingw-w64-cross-mingwarm64-tools() {
|
||||
conflicts=("${_mingw_suff}-${_realname}<=12.0.0.r0.g819a6ec2e-1")
|
||||
|
||||
_package "aarch64-w64-mingw32"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user