updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / mingw32-wxmsw / PKGBUILD
blobd1864f33a8899c34491f526d0ec6e54a0772e0ba
1 # Contributor: Andre Klitzing <aklitzing () online () de>
2 #Maintainer: schalaalexiazeal@gmail.com
3 _pkgname=wxMSW
4 _target=i486-mingw32
5 pkgname=mingw32-wxmsw
6 pkgver=2.8.12
7 pkgrel=2
8 pkgdesc="wxMSW is a port of wxWidgets for MS Windows"
9 arch=('i686' 'x86_64')
10 url="http://docs.wxwidgets.org/stable/wx_wxmswport.html"
11 license=('custom:wxWindows')
12 depends=('mingw32-runtime' 'mingw32-libpng' 'mingw32-expat' 'mingw32-zlib')
13 makedepends=('mingw32-w32api' 'mingw32-gcc' 'mingw32-binutils' 'hd2u')
14 conflicts=('mingw32-wxmsw-static')
15 options=(!strip !buildflags)
16 install=wxmsw.install
17 source=(http://downloads.sourceforge.net/wxwindows/$_pkgname-$pkgver.tar.bz2)
18 md5sums=('4bda849b9f7c66b58c4bc92e505ea714')
20 build() {
21   cd "$srcdir/$_pkgname-$pkgver"
23   ./configure --prefix=/usr/${_target} --build=$CHOST --host=${_target} --with-msw --with-expat --enable-unicode --enable-shared || return 1
24   make || return 1
25   make DESTDIR="$pkgdir/" install
27   msg "Get rid of stupid carriage return (^M problem) in all text files!"
28   cd "$pkgdir/"
29   find ./ -type f -exec dos2unix --d2u --skipbin {} \;