updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mingw-w64-tools / PKGBUILD
blob71113c4a5b53c68140a828f3dea56cf0bea8d82b
1 # Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com
2 pkgname=mingw-w64-tools
3 pkgver=2.0.1
4 pkgrel=1
5 pkgdesc='MinGW-w64 gendef and genidl tools'
6 arch=('any')
7 url='http://mingw-w64.sourceforge.net'
8 license=('custom')
9 groups=('mingw-w64')
10 depends=()
11 makedepends=()
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=('!libtool' '!emptydirs')
18 source=(http://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v${pkgver}.tar.gz)
19 md5sums=('ebb650e66f18f242676a53e0de05f3a9')
21 build() {
22   cd ${srcdir}
23   msg "Building MinGW-w64-tools"
24   mkdir -p ${srcdir}/gendef-build && cd ${srcdir}/gendef-build
25     ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-tools/gendef/configure --prefix=/usr
26     make
27   mkdir -p ${srcdir}/genidl-build && cd ${srcdir}/genidl-build
28     ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-tools/genidl/configure --prefix=/usr
29     make
32 package() {
33   msg "Installing MinGW-w64-tools"
34   cd ${srcdir}/gendef-build
35   make DESTDIR=${pkgdir} install
36   cd ${srcdir}/genidl-build
37   make DESTDIR=${pkgdir} install
38   msg "Installing licenses"
39   install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-tools/gendef/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.gendef
40   install -Dm644 ${srcdir}/mingw-w64-v${pkgver}/mingw-w64-tools/genidl/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.genidl