[arch-commits] Commit in mingw-w64-headers/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Jul 31 20:40:31 UTC 2020
Date: Friday, July 31, 2020 @ 20:40:30
Author: felixonmars
Revision: 666453
archrelease: copy trunk to community-any
Added:
mingw-w64-headers/repos/community-any/
mingw-w64-headers/repos/community-any/PKGBUILD
(from rev 666452, mingw-w64-headers/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: mingw-w64-headers/repos/community-any/PKGBUILD (from rev 666452, mingw-w64-headers/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-07-31 20:40:30 UTC (rev 666453)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname='mingw-w64-headers'
+pkgver=7.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})
+sha256sums=('aa20dfff3596f08a7f427aab74315a6cb80c2b086b4a107ed35af02f9496b628'
+ 'SKIP')
+
+_targets="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ for _target in ${_targets}; do
+ msg "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 --enable-secure-api --host=${_target}
+ done
+}
+
+package() {
+ for _target in ${_targets}; do
+ msg "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
+
+ msg "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
+ 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
+}
More information about the arch-commits
mailing list