aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-10-28 19:16:07 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-10-28 19:16:07 -0300
commit2dba27ff47263682537947bbe93e5ff2ee2b0162 (patch)
treeac7abc2a77eb1fff30de18c03c859eed56abdde6 /community
parent2ad68109e1059655e4dc6403b06c1e8360734440 (diff)
downloadaports-2dba27ff47263682537947bbe93e5ff2ee2b0162.tar.bz2
aports-2dba27ff47263682537947bbe93e5ff2ee2b0162.tar.xz
community/mingw-w64-winpthreads: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/mingw-w64-winpthreads/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/community/mingw-w64-winpthreads/APKBUILD b/community/mingw-w64-winpthreads/APKBUILD
new file mode 100644
index 0000000000..8a2b1ecb37
--- /dev/null
+++ b/community/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"