aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mingw-w64-winpthreads
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-11 10:09:46 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-11 17:30:06 -0300
commitd16c199763c9f49226fc67c228cbb08bdacd914f (patch)
treed6fa6c50a0d771b4065849890269585e2556ce2c /testing/mingw-w64-winpthreads
parent8767c340043944248124b04021a269e568fda690 (diff)
downloadaports-d16c199763c9f49226fc67c228cbb08bdacd914f.tar.bz2
aports-d16c199763c9f49226fc67c228cbb08bdacd914f.tar.xz
testing/mingw-w64-winpthreads: new aport
http://mingw-w64.sourceforge.net MinGW-w64 winpthreads library
Diffstat (limited to 'testing/mingw-w64-winpthreads')
-rw-r--r--testing/mingw-w64-winpthreads/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/mingw-w64-winpthreads/APKBUILD b/testing/mingw-w64-winpthreads/APKBUILD
new file mode 100644
index 0000000000..8a2b1ecb37
--- /dev/null
+++ b/testing/mingw-w64-winpthreads/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=mingw-w64-winpthreads
+pkgver=6.0.0
+pkgrel=0
+pkgdesc="MinGW-w64 winpthreads library"
+url="http://mingw-w64.sourceforge.net"
+arch="x86_64 x86"
+license="custom"
+makedepends="
+ mingw-w64-gcc-base
+ mingw-w64-binutils
+ mingw-w64-crt
+ "
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.bz2::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-libraries/winpthreads"
+
+case "$CARCH" in
+ x86_64) _target="x86_64-w64-mingw32" ;;
+ x86) _target="i686-w64-mingw32" ;;
+esac
+
+build() {
+ ./configure \
+ --prefix=/usr/${_target} \
+ --host=${_target} \
+ --enable-static \
+ --enable-shared \
+ CC=${_target}-gcc
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ ${_target}-strip --strip-unneeded "$pkgdir"/usr/${_target}/bin/*.dll
+
+ # Licenses
+ install -Dm644 "$srcdir"/mingw-w64-v${pkgver}/COPYING.MinGW-w64/COPYING.MinGW-w64.txt \
+ "$pkgdir"/usr/share/licenses/${pkgname}/COPYING.MinGW-w64.txt
+ install -Dm644 "$srcdir"/mingw-w64-v${pkgver}/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt \
+ "$pkgdir"/usr/share/licenses/${pkgname}/COPYING.MinGW-w64-runtime.txt
+ install -Dm644 "$srcdir"/mingw-w64-v${pkgver}/mingw-w64-headers/ddk/readme.txt \
+ "$pkgdir"/usr/share/licenses/${pkgname}/ddk-readme.txt
+ install -Dm644 "$srcdir"/mingw-w64-v${pkgver}/mingw-w64-headers/direct-x/COPYING.LIB \
+ "$pkgdir"/usr/share/licenses/${pkgname}/direct-x-COPYING.LIB
+ install -Dm644 "$srcdir"/mingw-w64-v${pkgver}/mingw-w64-headers/direct-x/readme.txt \
+ "$pkgdir"/usr/share/licenses/${pkgname}/direct-x-readme.txt
+}
+
+sha512sums="e3d3663e0cb33a16f90b1a33e81b5a30d26f7e34270b14e865c10068f2a2d32da9ef8cbbb0c3fed9c71429ae11c82152ff3b87d81558929b2a4993dc99cfc11e mingw-w64-winpthreads-6.0.0.tar.bz2"