# Contributor: Leo # Maintainer: Simon Zeni pkgname=mingw-w64-headers-bootstrap pkgver=6.0.0 pkgrel=3 pkgdesc="Dummy headers for MinGW-w64 Windows" url="https://mingw-w64.sourceforge.net/" arch="x86_64 x86" depends="!mingw-w64-winpthreads" license="none" # Headers with empty comments builddir="$srcdir/" case "$CARCH" in x86_64) _targets="x86_64-w64-mingw32 i686-w64-mingw32" ;; x86) _targets="i686-w64-mingw32" ;; esac _dstring="/* Dummy header, which gets overriden, if winpthread library gets installed. */" package() { local target for target in $_targets; do mkdir -p "$pkgdir"/usr/$target/include echo "$_dstring" > "$pkgdir"/usr/$target/include/pthread_signal.h echo "$_dstring" > "$pkgdir"/usr/$target/include/pthread_time.h echo "$_dstring" > "$pkgdir"/usr/$target/include/pthread_unistd.h done }