Date: Wednesday, June 2, 2021 @ 20:19:50
  Author: felixonmars
Revision: 953310

archrelease: copy trunk to community-any

Added:
  mingw-w64-headers/repos/community-any/PKGBUILD
    (from rev 953309, mingw-w64-headers/trunk/PKGBUILD)
Deleted:
  mingw-w64-headers/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   89 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 48 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2021-06-02 20:19:39 UTC (rev 953309)
+++ PKGBUILD    2021-06-02 20:19:50 UTC (rev 953310)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-
-pkgname='mingw-w64-headers'
-pkgver=9.0.0
-pkgrel=1
-pkgdesc="MinGW-w64 headers for Windows"
-arch=('any')
-url="http://mingw-w64.sourceforge.net";
-license=('custom')
-groups=('mingw-w64-toolchain' 'mingw-w64')
-options=('!strip' '!libtool' '!emptydirs')
-validpgpkeys=('CAF5641F74F7DFBA88AE205693BDB53CD4EBC740')
-source=(https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.bz2{,.sig})
-sha512sums=('6691331a2ab521d22c1d32bebe0ed049bd62a7a7722cff38e7792b4e42c6b8df4356084afff6c916b487b3ebddc4372b398ab7cd0c7f4ff6991a70fe64177386'
-            'SKIP')
-
-_targets="i686-w64-mingw32 x86_64-w64-mingw32"
-
-build() {
-  for _target in ${_targets}; do
-    echo "Configuring ${_target} headers"
-    mkdir -p "$srcdir"/headers-${_target} && cd "$srcdir"/headers-${_target}
-    "$srcdir"/mingw-w64-v${pkgver}/mingw-w64-headers/configure 
--prefix=/usr/${_target} --enable-sdk=all --host=${_target}
-  done
-}
-
-package() {
-  for _target in ${_targets}; do
-    echo "Installing ${_target} headers"
-    cd "$srcdir"/headers-${_target}
-    make DESTDIR="$pkgdir" install
-    rm "$pkgdir"/usr/${_target}/include/pthread_signal.h
-    rm "$pkgdir"/usr/${_target}/include/pthread_time.h
-    rm "$pkgdir"/usr/${_target}/include/pthread_unistd.h
-  done
-
-  echo "Installing MinGW-w64 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
-}

Copied: mingw-w64-headers/repos/community-any/PKGBUILD (from rev 953309, 
mingw-w64-headers/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2021-06-02 20:19:50 UTC (rev 953310)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=mingw-w64-headers
+pkgver=9.0.0
+pkgrel=2
+pkgdesc="MinGW-w64 headers for Windows"
+arch=('any')
+url="http://mingw-w64.sourceforge.net";
+license=('custom')
+groups=('mingw-w64-toolchain' 'mingw-w64')
+options=('!strip' '!libtool' '!emptydirs')
+validpgpkeys=('CAF5641F74F7DFBA88AE205693BDB53CD4EBC740')
+source=(https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.bz2{,.sig}
+        
__cpuidex-definition-conflicting-gcc-11.patch::https://github.com/mirror/mingw-w64/commit/d2374f898457b0f4ea8bd4084a94f2dafc87a99a.patch)
+sha512sums=('6691331a2ab521d22c1d32bebe0ed049bd62a7a7722cff38e7792b4e42c6b8df4356084afff6c916b487b3ebddc4372b398ab7cd0c7f4ff6991a70fe64177386'
+            'SKIP'
+            
'e5ad3e276c2f449dc680424813ae4d385066afd6591554e0422ff6607f00bae9f3b00ad4138395b651667cf8a7eb191f0e90562e677430b63af1d1920e5ff32d')
+
+_targets="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+  # FS#71074
+  patch -d mingw-w64-v$pkgver -p1 < 
__cpuidex-definition-conflicting-gcc-11.patch
+}
+
+build() {
+  for _target in ${_targets}; do
+    echo "Configuring ${_target} headers"
+    mkdir -p "$srcdir"/headers-${_target} && cd "$srcdir"/headers-${_target}
+    "$srcdir"/mingw-w64-v${pkgver}/mingw-w64-headers/configure 
--prefix=/usr/${_target} --enable-sdk=all --host=${_target}
+  done
+}
+
+package() {
+  for _target in ${_targets}; do
+    echo "Installing ${_target} headers"
+    cd "$srcdir"/headers-${_target}
+    make DESTDIR="$pkgdir" install
+    rm "$pkgdir"/usr/${_target}/include/pthread_signal.h
+    rm "$pkgdir"/usr/${_target}/include/pthread_time.h
+    rm "$pkgdir"/usr/${_target}/include/pthread_unistd.h
+  done
+
+  echo "Installing MinGW-w64 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
+}

Reply via email to