aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mingw-w64-headers-bootstrap/APKBUILD
blob: 2d0a0d9e988c8556ed94f610936ed28527ad3984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=mingw-w64-headers-bootstrap
pkgver=6.0.0
pkgrel=0
pkgdesc="Dummy headers for MinGW-w64 Windows"
url="http://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) _target="x86_64-w64-mingw32" ;;
	x86) _target="i686-w64-mingw32" ;;
esac

_dstring="/* Dummy header, which gets overriden, if winpthread library gets installed.  */"

package() {
	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
}