diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-11 09:39:36 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-11 17:30:06 -0300 |
commit | 8767c340043944248124b04021a269e568fda690 (patch) | |
tree | a647831f3ddb45aebd17ae2e8549ae30dfa0176f /testing/mingw-w64-crt/APKBUILD | |
parent | 88c97b3fbf74504d654c43771a696779966bd114 (diff) | |
download | aports-8767c340043944248124b04021a269e568fda690.tar.bz2 aports-8767c340043944248124b04021a269e568fda690.tar.xz |
testing/mingw-w64-crt: new aport
http://mingw-w64.sourceforge.net
MinGW-w64 CRT for Windows
Diffstat (limited to 'testing/mingw-w64-crt/APKBUILD')
-rw-r--r-- | testing/mingw-w64-crt/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/mingw-w64-crt/APKBUILD b/testing/mingw-w64-crt/APKBUILD new file mode 100644 index 0000000000..d84534c0cb --- /dev/null +++ b/testing/mingw-w64-crt/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=mingw-w64-crt +pkgver=6.0.0 +pkgrel=0 +pkgdesc="MinGW-w64 CRT for Windows" +options="!check !strip" +url="http://mingw-w64.sourceforge.net" +arch="x86_64 x86" +license="custom" +makedepends=" + mingw-w64-gcc-base + mingw-w64-binutils + mingw-w64-headers + mingw-w64-headers-bootstrap + " +source="https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.bz2" +builddir="$srcdir/mingw-w64-v$pkgver/mingw-w64-crt" + +case "$CARCH" in + x86_64) + _target="x86_64-w64-mingw32" + _configure_args="--disable-lib32 --enable-lib64" + ;; + x86) + _target="i686-w64-mingw32" + _configure_args="--disable-lib64 --enable-lib32" + ;; +esac + +# Directory for out-of-tree builds +_crtdir="$srcdir/crt-${_target}" + +prepare() { + default_prepare + + mkdir -p "$_crtdir" +} + +build() { + cd "$_crtdir" + "$builddir"/configure \ + --prefix=/usr/${_target} \ + --host=${_target} \ + --target=${_target} \ + --enable-wildcard \ + ${_configure_args} \ + CC=${_target}-gcc + make +} + +package() { + cd "$_crtdir" + make DESTDIR="$pkgdir" install +} + +sha512sums="e3d3663e0cb33a16f90b1a33e81b5a30d26f7e34270b14e865c10068f2a2d32da9ef8cbbb0c3fed9c71429ae11c82152ff3b87d81558929b2a4993dc99cfc11e mingw-w64-v6.0.0.tar.bz2" |