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

Felix Yan felixonmars at archlinux.org
Sun Aug 2 08:48:36 UTC 2020


    Date: Sunday, August 2, 2020 @ 08:48:36
  Author: felixonmars
Revision: 667597

archrelease: copy trunk to community-any

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

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

Copied: mingw-w64-winpthreads/repos/community-any/PKGBUILD (from rev 667596, mingw-w64-winpthreads/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-08-02 08:48:36 UTC (rev 667597)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mingw-w64-winpthreads
+pkgver=7.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})
+sha256sums=('aa20dfff3596f08a7f427aab74315a6cb80c2b086b4a107ed35af02f9496b628'
+            '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