[arch-commits] Commit in mingw-w64-winpthreads/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Apr 8 23:21:33 UTC 2022


    Date: Friday, April 8, 2022 @ 23:21:32
  Author: felixonmars
Revision: 1183078

archrelease: copy trunk to community-testing-any

Added:
  mingw-w64-winpthreads/repos/community-testing-any/
  mingw-w64-winpthreads/repos/community-testing-any/PKGBUILD
    (from rev 1183077, mingw-w64-winpthreads/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: mingw-w64-winpthreads/repos/community-testing-any/PKGBUILD (from rev 1183077, mingw-w64-winpthreads/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-04-08 23:21:32 UTC (rev 1183078)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mingw-w64-winpthreads
+pkgver=10.0.0
+pkgrel=1
+pkgdesc='MinGW-w64 winpthreads library'
+arch=('any')
+url='http://mingw-w64.sourceforge.net'
+license=('custom')
+groups=('mingw-w64-toolchain' 'mingw-w64')
+makedepends=('mingw-w64-gcc' 'mingw-w64-binutils' "mingw-w64-crt=${pkgver}")
+provides=('mingw-w64-headers-bootstrap')
+conflicts=('mingw-w64-headers-bootstrap')
+replaces=('mingw-w64-headers-bootstrap')
+options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
+validpgpkeys=('CAF5641F74F7DFBA88AE205693BDB53CD4EBC740')
+source=(https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.bz2{,.sig})
+sha512sums=('3c0827af7c40809a867758f6cd9ef3ff0c988b43082345bf725e03949af95968d634ace99a7ffae323189549221dcb5d861de9e801f1fbc7904e446641b60516'
+            'SKIP')
+
+_targets="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+  for _target in ${_targets}; do
+    msg "Building ${_target} winpthreads..."
+    mkdir -p "$srcdir"/winpthreads-build-${_target} && cd "$srcdir"/winpthreads-build-${_target}
+    "$srcdir"/mingw-w64-v${pkgver}/mingw-w64-libraries/winpthreads/configure --prefix=/usr/${_target} \
+        --host=${_target} --enable-static --enable-shared
+    make
+  done
+}
+
+package() {
+  for _target in ${_targets}; do
+    cd "$srcdir"/winpthreads-build-${_target}
+    make DESTDIR="$pkgdir" install
+    ${_target}-strip --strip-unneeded "$pkgdir"/usr/${_target}/bin/*.dll
+  done
+}



More information about the arch-commits mailing list