From c5e156394ac3b0ff03594ffb5da97f774acf5b8f Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sat, 3 Mar 2018 21:51:38 -0500 Subject: [PATCH] Add mingw-w64-gcc --- src/cloog/.AURINFO | 16 +++++ src/cloog/PKGBUILD | 31 ++++++++++ src/isl/PKGBUILD | 38 ++++++++++++ src/mingw-w64-binutils/PKGBUILD | 50 ++++++++++++++++ src/mingw-w64-crt/PKGBUILD | 52 ++++++++++++++++ src/mingw-w64-gcc-base/PKGBUILD | 59 ++++++++++++++++++ src/mingw-w64-gcc-base/isl.patch | 76 ++++++++++++++++++++++++ src/mingw-w64-gcc/PKGBUILD | 75 +++++++++++++++++++++++ src/mingw-w64-headers-bootstrap/PKGBUILD | 35 +++++++++++ src/mingw-w64-headers/PKGBUILD | 46 ++++++++++++++ src/mingw-w64-winpthreads/PKGBUILD | 42 +++++++++++++ 11 files changed, 520 insertions(+) create mode 100644 src/cloog/.AURINFO create mode 100644 src/cloog/PKGBUILD create mode 100644 src/isl/PKGBUILD create mode 100644 src/mingw-w64-binutils/PKGBUILD create mode 100644 src/mingw-w64-crt/PKGBUILD create mode 100644 src/mingw-w64-gcc-base/PKGBUILD create mode 100644 src/mingw-w64-gcc-base/isl.patch create mode 100644 src/mingw-w64-gcc/PKGBUILD create mode 100644 src/mingw-w64-headers-bootstrap/PKGBUILD create mode 100644 src/mingw-w64-headers/PKGBUILD create mode 100644 src/mingw-w64-winpthreads/PKGBUILD diff --git a/src/cloog/.AURINFO b/src/cloog/.AURINFO new file mode 100644 index 0000000..44ba313 --- /dev/null +++ b/src/cloog/.AURINFO @@ -0,0 +1,16 @@ +pkgbase = cloog + pkgdesc = Library that generates loops for scanning polyhedra + pkgver = 0.18.1 + pkgrel = 3 + url = http://www.bastoul.net/cloog/ + arch = i686 + arch = x86_64 + license = GPL + depends = isl + source = http://www.bastoul.net/cloog/pages/download/cloog-0.18.1.tar.gz + source = cloog-0.18.1-isl-compat.patch + md5sums = e34fca0540d840e5d0f6427e98c92252 + md5sums = 976c999b44c6e364455a670d12523242 + +pkgname = cloog + diff --git a/src/cloog/PKGBUILD b/src/cloog/PKGBUILD new file mode 100644 index 0000000..42a90df --- /dev/null +++ b/src/cloog/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Aaron Fischer +# Contributor: Allan McRae + +pkgname=cloog +pkgver=0.18.5 +pkgrel=1 +pkgdesc="Library that generates loops for scanning polyhedra" +arch=('i686' 'x86_64' 'armv7h') +url="http://www.bastoul.net/cloog/" +license=('GPL') +depends=('isl>=0.18' 'osl') +source=(https://github.com/periscop/cloog/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('48602a72aaec8e1dabc33ec0622739d3ad585b7f0ec480eebdc1d724822b7cfd') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --with-isl=system --with-osl=system + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + # There are certain race conditions on running the tests, so we restrict + # it to one job (one CPU core). + make -j1 check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=$pkgdir/ install +} diff --git a/src/isl/PKGBUILD b/src/isl/PKGBUILD new file mode 100644 index 0000000..161b26b --- /dev/null +++ b/src/isl/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: sudokode +# Contributor: Allan McRae + +pkgname=isl +pkgver=0.18 +pkgrel=3 +pkgdesc="Library for manipulating sets and relations of integer points bounded by linear constraints" +arch=('i686' 'x86_64') +url="http://isl.gforge.inria.fr/" +depends=('gmp') +license=('MIT') +conflicts=('isl-git' 'isl15' 'isl14') +source=("http://isl.gforge.inria.fr/$pkgname-${pkgver}.tar.xz") +sha256sums=('0f35051cc030b87c673ac1f187de40e386a1482a0cfdf2c552dd6031b307ddc4') + +build() { + cd $pkgname-$pkgver + + ./configure --prefix=/usr + make +} + +check() { + cd $pkgname-$pkgver + + make check +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir" install + + install -dm755 "$pkgdir"/usr/share/gdb/auto-load/usr/lib/ + mv "$pkgdir"/usr/lib/libisl.so.*-gdb.py "$pkgdir"/usr/share/gdb/auto-load/usr/lib/ + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/isl/LICENSE +} diff --git a/src/mingw-w64-binutils/PKGBUILD b/src/mingw-w64-binutils/PKGBUILD new file mode 100644 index 0000000..4985f6a --- /dev/null +++ b/src/mingw-w64-binutils/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname=mingw-w64-binutils +pkgver=2.29 +pkgrel=1 +pkgdesc="Cross binutils for the MinGW-w64 cross-compiler" +arch=('x86_64') +url="http://www.gnu.org/software/binutils" +license=('GPL') +groups=('mingw-w64-toolchain' 'mingw-w64') +depends=('zlib') +options=('!libtool' '!emptydirs') +validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93') +source=("https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.gz"{,.sig}) +sha256sums=('172e8c89472cf52712fd23a9f14e9bca6182727fb45b0f8f482652a83d5a11b4' + 'SKIP') + +prepare() { + cd "$srcdir"/binutils-${pkgver} + #do not install libiberty + sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in + # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure +} + +build() { + for _target in $_targets; do + msg "Building ${_target} cross binutils" + mkdir -p "$srcdir"/binutils-${_target} && cd "${srcdir}/binutils-${_target}" + "$srcdir"/binutils-${pkgver}/configure --prefix=/usr \ + --target=${_target} \ + --infodir=/usr/share/info/${_target} \ + --enable-lto --enable-plugins \ + --disable-multilib --disable-nls \ + --disable-werror + make + done +} + +package() { + for _target in ${_targets}; do + msg "Installing ${_target} cross binutils" + cd "$srcdir"/binutils-${_target} + make DESTDIR="$pkgdir" install + done +} diff --git a/src/mingw-w64-crt/PKGBUILD b/src/mingw-w64-crt/PKGBUILD new file mode 100644 index 0000000..29f0f97 --- /dev/null +++ b/src/mingw-w64-crt/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 266000 2017-11-09 13:12:50Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname=mingw-w64-crt +pkgver=5.0.3 +_pkgver=${pkgver/rc/-rc} +pkgrel=1 +pkgdesc='MinGW-w64 CRT for Windows' +arch=('any') +url='http://mingw-w64.sourceforge.net' +license=('custom') +groups=('mingw-w64-toolchain' 'mingw-w64') +makedepends=('mingw-w64-gcc-base' 'mingw-w64-binutils' 'mingw-w64-headers') +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=('2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4' + 'SKIP') + +prepare() { + cd "$srcdir"/mingw-w64-v${_pkgver}/mingw-w64-crt + aclocal + automake +} + +build() { + cd "$srcdir" + for _target in ${_targets}; do + msg "Building ${_target} CRT" + if [ ${_target} == "i686-w64-mingw32" ]; then + _crt_configure_args="--disable-lib64 --enable-lib32" + elif [ ${_target} == "x86_64-w64-mingw32" ]; then + _crt_configure_args="--disable-lib32 --enable-lib64" + fi + mkdir -p "$srcdir"/crt-${_target} && cd "$srcdir"/crt-${_target} + "$srcdir"/mingw-w64-v${_pkgver}/mingw-w64-crt/configure --prefix=/usr/${_target} \ + --host=${_target} --enable-wildcard \ + ${_crt_configure_args} + make + done +} + +package() { + for _target in ${_targets}; do + msg "Installing ${_target} crt" + cd "$srcdir"/crt-${_target} + make DESTDIR="$pkgdir" install + done +} diff --git a/src/mingw-w64-gcc-base/PKGBUILD b/src/mingw-w64-gcc-base/PKGBUILD new file mode 100644 index 0000000..ef0441e --- /dev/null +++ b/src/mingw-w64-gcc-base/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname=mingw-w64-gcc-base +pkgver=4.9.2 +pkgrel=1 +pkgdesc="Cross GCC for the MinGW-w64 cross-compiler (bootstrap)" +arch=('x86_64') +url="http://gcc.gnu.org" +license=('GPL' 'LGPL' 'FDL' 'custom') +groups=('mingw-w64-bootstrap' 'mingw-w64') +depends=('zlib' 'libmpc' 'ppl' 'cloog' 'mingw-w64-binutils' 'mingw-w64-headers' 'mingw-w64-headers-bootstrap') +conflicts=('mingw-w64-gcc') +options=('staticlibs' '!emptydirs') +source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2) +md5sums=('4df8ee253b7f3863ad0b86359cd39c43') + +prepare() { + cd ${srcdir}/gcc-${pkgver} + + #do not install libiberty + sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in + # hack! - some configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure +} + +build() { + for _target in ${_targets}; do + msg "Building ${_target} GCC C compiler" + mkdir -p ${srcdir}/gcc-build-${_target} && cd ${srcdir}/gcc-build-${_target} + + ${srcdir}/gcc-${pkgver}/configure --prefix=/usr \ + --target=${_target} \ + --enable-languages=c,lto \ + --enable-static \ + --with-system-zlib \ + --enable-lto --disable-dw2-exceptions \ + --disable-nls --enable-version-specific-runtime-libs \ + --disable-multilib --enable-checking=release + make all-gcc + done +} + +package() { + for _target in ${_targets}; do + msg "Installing ${_target} GCC C compiler" + cd ${srcdir}/gcc-build-${_target} + make DESTDIR=${pkgdir} install-gcc + strip ${pkgdir}/usr/bin/${_target}-* + strip ${pkgdir}/usr/libexec/gcc/${_target}/${pkgver}/{cc1,collect2,lto*} + done + # remove unnecessary files + msg "Removing man and info pages" + rm -r ${pkgdir}/usr/share/man + rm -r ${pkgdir}/usr/share/info +} diff --git a/src/mingw-w64-gcc-base/isl.patch b/src/mingw-w64-gcc-base/isl.patch new file mode 100644 index 0000000..a7366e2 --- /dev/null +++ b/src/mingw-w64-gcc-base/isl.patch @@ -0,0 +1,76 @@ +diff -wbBur gcc-4.9.0/gcc/graphite-clast-to-gimple.c gcc-4.9.0.my/gcc/graphite-clast-to-gimple.c +--- gcc-4.9.0/gcc/graphite-clast-to-gimple.c 2014-03-03 15:39:22.000000000 +0400 ++++ gcc-4.9.0.my/gcc/graphite-clast-to-gimple.c 2014-06-09 15:23:14.858543000 +0400 +@@ -28,6 +28,8 @@ + #include + #include + #include ++#include ++#include + #include + #include + #endif +diff -wbBur gcc-4.9.0/gcc/graphite-interchange.c gcc-4.9.0.my/gcc/graphite-interchange.c +--- gcc-4.9.0/gcc/graphite-interchange.c 2014-01-03 02:23:26.000000000 +0400 ++++ gcc-4.9.0.my/gcc/graphite-interchange.c 2014-06-09 15:24:02.275209122 +0400 +@@ -29,6 +29,9 @@ + #include + #include + #include ++#include ++#include ++#include + #include + #include + #endif +diff -wbBur gcc-4.9.0/gcc/graphite-optimize-isl.c gcc-4.9.0.my/gcc/graphite-optimize-isl.c +--- gcc-4.9.0/gcc/graphite-optimize-isl.c 2014-01-03 02:23:26.000000000 +0400 ++++ gcc-4.9.0.my/gcc/graphite-optimize-isl.c 2014-06-09 15:28:20.325206155 +0400 +@@ -28,6 +28,10 @@ + #include + #include + #include ++#include ++#include ++#include ++#include + #endif + + #include "system.h" +@@ -373,7 +377,7 @@ + { + for (i = ScheduleDimensions - 1 ; i >= 0 ; i--) + { +- if (isl_band_member_is_zero_distance (Band, i)) ++ if (isl_band_member_is_coincident (Band, i)) + { + isl_map *TileMap; + isl_union_map *TileUMap; +diff -wbBur gcc-4.9.0/gcc/graphite-poly.c gcc-4.9.0.my/gcc/graphite-poly.c +--- gcc-4.9.0/gcc/graphite-poly.c 2014-01-03 02:23:26.000000000 +0400 ++++ gcc-4.9.0.my/gcc/graphite-poly.c 2014-06-09 15:31:04.541870933 +0400 +@@ -28,6 +28,10 @@ + #include + #include + #include ++#include ++#include ++#include ++#include + #include + #include + #endif +diff -wbBur gcc-4.9.0/gcc/graphite-sese-to-poly.c gcc-4.9.0.my/gcc/graphite-sese-to-poly.c +--- gcc-4.9.0/gcc/graphite-sese-to-poly.c 2014-04-08 14:59:40.000000000 +0400 ++++ gcc-4.9.0.my/gcc/graphite-sese-to-poly.c 2014-06-09 15:31:21.731870661 +0400 +@@ -26,6 +26,10 @@ + #include + #include + #include ++#include ++#include ++#include ++#include + #include + #include + #include diff --git a/src/mingw-w64-gcc/PKGBUILD b/src/mingw-w64-gcc/PKGBUILD new file mode 100644 index 0000000..4dcaeac --- /dev/null +++ b/src/mingw-w64-gcc/PKGBUILD @@ -0,0 +1,75 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname=mingw-w64-gcc +pkgver=7.3.0 +_islver=0.18 +pkgrel=1 +pkgdesc="Cross GCC for the MinGW-w64 cross-compiler" +arch=('x86_64') +url="http://gcc.gnu.org" +license=('GPL' 'LGPL' 'FDL' 'custom') +groups=('mingw-w64-toolchain' 'mingw-w64') +depends=('zlib' 'libmpc' + 'mingw-w64-crt' 'mingw-w64-binutils' 'mingw-w64-winpthreads' + 'mingw-w64-headers') +makedepends=("gcc-ada") +#checkdepends=('dejagnu') # Windows executables could run on Arch through bin_mft and Wine +optdepends=() +provides=('mingw-w64-gcc-base') +replaces=() +backup=() +options=('!strip' 'staticlibs' '!emptydirs' '!buildflags') +#source=(https://sources.archlinux.org/other/gcc/gcc-${pkgver/+/-}.tar.xz{,.sig} +source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig} + "http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2") +validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org + 13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther@gmail.com +sha256sums=('832ca6ae04636adbb430e865a1451adf6979ab44ca1c8374f61fba65645ce15c' + 'SKIP' + '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b') + +prepare() { + ln -s gcc-${pkgver/+/-} gcc + cd "$srcdir"/gcc + # link isl for in-tree builds + ln -sf ../isl-${_islver} isl +} + +build() { + for _target in ${_targets}; do + mkdir -p "$srcdir"/gcc-build-${_target} && cd "$srcdir"/gcc-build-${_target} + + "$srcdir"/gcc/configure --prefix=/usr --libexecdir=/usr/lib \ + --target=${_target} \ + --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada \ + --enable-shared --enable-static \ + --enable-threads=posix --enable-fully-dynamic-string --enable-libstdcxx-time=yes \ + --with-system-zlib --enable-cloog-backend=isl \ + --enable-lto --disable-dw2-exceptions --enable-libgomp \ + --disable-multilib --enable-checking=release + make all + done +} + +package() { + for _target in ${_targets}; do + cd "$srcdir"/gcc-build-${_target} + make DESTDIR="$pkgdir" install + ${_target}-strip "$pkgdir"/usr/${_target}/lib/*.dll + strip "$pkgdir"/usr/bin/${_target}-* + strip "$pkgdir"/usr/lib/gcc/${_target}/${pkgver:0:5}/{cc1*,collect2,gnat1,f951,lto*} + ln -s ${_target}-gcc "$pkgdir"/usr/bin/${_target}-cc + # mv dlls + mkdir -p "$pkgdir"/usr/${_target}/bin/ + mv "$pkgdir"/usr/${_target}/lib/*.dll "$pkgdir"/usr/${_target}/bin/ + done + strip "$pkgdir"/usr/bin/* + # remove unnecessary files + rm -r "$pkgdir"/usr/share + rm -f "$pkgdir"/usr/lib/libcc1.so* + rm -f "$pkgdir"/usr/lib/libcc1.a +} diff --git a/src/mingw-w64-headers-bootstrap/PKGBUILD b/src/mingw-w64-headers-bootstrap/PKGBUILD new file mode 100644 index 0000000..2dfd63d --- /dev/null +++ b/src/mingw-w64-headers-bootstrap/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 266004 2017-11-09 13:17:42Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" +_dummystring="/* Dummy header, which gets overriden, if winpthread library gets installed. */" + +pkgname=mingw-w64-headers-bootstrap +pkgver=5.0.3 +pkgrel=1 +pkgdesc="MinGW-w64 headers for Windows (bootstrap)" +arch=('any') +url="http://mingw-w64.sourceforge.net" +license=('custom') +groups=('mingw-w64-bootstrap') +makedepends=('mingw-w64-headers') +conflicts=('mingw-w64-winpthreads', 'mingw-w64-winpthreads-svn') +options=('!strip' '!libtool' '!emptydirs') +source=() +sha256sums=() + +build() { + mkdir -p "$srcdir"/dummy/ && cd "$srcdir"/dummy + echo "${_dummystring}" > pthread_signal.h + echo "${_dummystring}" > pthread_time.h + echo "${_dummystring}" > pthread_unistd.h +} + +package() { + for _target in ${_targets}; do + install -Dm644 "$srcdir"/dummy/pthread_signal.h "$pkgdir"/usr/${_target}/include/pthread_signal.h + install -Dm644 "$srcdir"/dummy/pthread_time.h "$pkgdir"/usr/${_target}/include/pthread_time.h + install -Dm644 "$srcdir"/dummy/pthread_unistd.h "$pkgdir"/usr/${_target}/include/pthread_unistd.h + done +} diff --git a/src/mingw-w64-headers/PKGBUILD b/src/mingw-w64-headers/PKGBUILD new file mode 100644 index 0000000..914349c --- /dev/null +++ b/src/mingw-w64-headers/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 266002 2017-11-09 13:16:03Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname='mingw-w64-headers' +pkgver=5.0.3 +_pkgver=${pkgver/rc/-rc} +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=('2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4' + 'SKIP') + +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 +} diff --git a/src/mingw-w64-winpthreads/PKGBUILD b/src/mingw-w64-winpthreads/PKGBUILD new file mode 100644 index 0000000..d0dee48 --- /dev/null +++ b/src/mingw-w64-winpthreads/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 266006 2017-11-09 13:20:35Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: rubenvb vanboxem ruben gmail com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname=mingw-w64-winpthreads +pkgver=5.0.3 +_pkgver=${pkgver/rc/-rc} +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-base' 'mingw-w64-binutils' 'mingw-w64-crt') +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=('2a601db99ef579b9be69c775218ad956a24a09d7dabc9ff6c5bd60da9ccc9cb4' + 'SKIP') + +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 +}