# Contributor: napa3um pkgname=mingw32-wxmsw-static pkgver=2.9.1 pkgrel=1 pkgdesc="wxMSW is a port of wxWidgets for MS Windows. Static version." arch=('i686' 'x86_64') url='http://www.wxwidgets.org/' license=('custom:wxWindows') makedepends=('mingw32-w32api' 'mingw32-gcc' 'mingw32-binutils') conflicts=('mingw32-wxmsw') replaces=('mingw32-wxmsw') # Commented the 3 lines below because we have downloaded the src code #source=(http://downloads.sourceforge.net/wxwindows/wxMSW-$pkgver.tar.bz2) #source=(http://ufpr.dl.sourceforge.net/project/wxwindows/2.9.1/wxWidgets-2.9.1.tar.bz2) #md5sums=(81c20d7b2ba31becb18e467dbe09be8f) build() { cd ${srcdir}/wxMSW-${pkgver} unset LDFLAGS ./configure --prefix=/usr/i486-mingw32/ --host=i486-mingw32 --with-msw --with-expat=builtin --with-libpng=builtin --with-zlib\ =builtin --disable-compat26 --enable-unicode --disable-shared --disable-debug --enable-dataobj --enable-threads --enable-no_r\ tti --disable-no_exceptions --enable-longlong sed -ie 's/wxHAS_STRTOLL/HAVE_WCSTOULL/g' src/common/string.cpp || return 1 #КОСТЫЛЬ №1! sed -ie 's/wxStrtoll/wcstoll/g' src/common/string.cpp || return 1 #КОСТЫЛЬ №2! sed -ie 's/wxStrtoull/wcstoull/g' src/common/string.cpp || return 1 #КОСТЫЛЬ №3! make || return 1 make DESTDIR=${pkgdir} install || return 1 }