public
Last active

mingw-w64-headers-svn PKGBUILD

  • Download Gist
PKGBUILD
Shell
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
# Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
# Modified by: Philip A Reimer <antreimer@gmail.com>
pkgname='mingw-w64-headers-svn'
pkgdesc="MinGW-w64 headers for Windows"
pkgver=5969
pkgrel=1
arch=('any')
url="http://mingw-w64.sourceforge.net"
license=('custom')
groups=('mingw-w64-toolchain' 'mingw-w64')
depends=()
makedepends=('svn')
optdepends=()
provides=('mingw-w64-headers')
conflicts=('mingw-w64-headers')
replaces=()
backup=()
options=('!strip' '!libtool' '!emptydirs')
source=()
md5sums=()
 
_svntrunk=https://svn.code.sf.net/p/mingw-w64/code/trunk
_svnmod=mingw-w64-headers
 
_targets="i686-w64-mingw32 x86_64-w64-mingw32"
 
build() {
cd ${srcdir}
svn co ${_svntrunk}/${_svnmod} --config-dir ./ ${_svnmod} --revision "$pkgver"
 
for _target in ${_targets}; do
msg "Configuring ${_target} headers"
mkdir -p ${srcdir}/headers-${_target} && cd ${srcdir}/headers-${_target}
${srcdir}/mingw-w64-headers/configure --prefix=/usr/${_target} --enable-sdk=all --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_time.h
rm ${pkgdir}/usr/${_target}/include/pthread_unistd.h
done
 
msg "Installing MinGW-w64 licenses"
install -Dm644 ${srcdir}/mingw-w64-headers/ddk/readme.txt ${pkgdir}/usr/share/licenses/${pkgname}/ddk-readme.txt
install -Dm644 ${srcdir}/mingw-w64-headers/direct-x/COPYING.LIB ${pkgdir}/usr/share/licenses/${pkgname}/direct-x-COPYING.LIB
install -Dm644 ${srcdir}/mingw-w64-headers/direct-x/readme.txt ${pkgdir}/usr/share/licenses/${pkgname}/direct-x-readme.txt
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.