1 # $Id: PKGBUILD,v 1.1 2007/04/17 13:00:43 alexander Exp $
2 # Maintainer: Alexander Baldeck <alexander@archlinux.org>
3 # Added flags needed for extrema by Marcelo Avalos Tejeda <marcelo.avalos@gmail.com>
7 pkgdesc="wxGTK 2.6.x with flags needed by extrema"
10 depends=('gtk2>=2.10.9' 'mesa')
11 replaces=('wxgtk-2.6')
12 conflicts=('wxgtk-2.6')
13 provides=('wxgtk-2.6')
14 source=(http://prdownloads.sourceforge.net/wxwindows/wxGTK-${pkgver}.tar.bz2)
15 url="http://wxwidgets.org"
16 md5sums=('ce0fd2b425bc98957cf70eea5f154b49')
18 cd ${startdir}/src/wxGTK-${pkgver}
19 ./configure --prefix=/usr \
32 --enable-optimize || return 1
35 make DESTDIR=${startdir}/pkg install || return 1
38 make DESTDIR=${startdir}/pkg install || return 1
39 rm -f ${startdir}/pkg/usr/bin/wx-config
40 rm -f ${startdir}/pkg/usr/bin/wxrc
41 ln -sf /usr/lib/wx/config/gtk2-unicode-release-2.6 ${startdir}/pkg/usr/bin/wx-config-2.6
43 rm -rf ${startdir}/pkg/usr/share/bakefile
44 find ${startdir}/pkg/usr/share/locale -name wxmsw.mo | xargs rm -f
46 for i in ${startdir}/pkg/usr/share/locale/*/LC_MESSAGES/wxstd.mo; do
47 NEWNAME=`echo $i | sed -e 's!wxstd.mo!compat-wxstd26.mo!'`;
50 mv ${startdir}/pkg/usr/share/aclocal/wxwin.m4 \
51 ${startdir}/pkg/usr/share/aclocal/wxwin-2.6.m4