updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / mingw32-gettext / PKGBUILD
blobf42084ee9ad74ccdf837eecb12a5db137bdf33bd
1 # Maintainer: Ondrej Jirman <megous@megous.com>
2 # Contributor: Alex Ghoust <ghoust@skyper.homelinux.org>
4 pkgname=mingw32-gettext
5 pkgver=0.18.1.1
6 pkgrel=2
7 arch=(i686 x86_64)
8 pkgdesc="gettext-runtime (mingw32)"
9 depends=(mingw32-runtime mingw32-libiconv)
10 makedepends=(mingw32-gcc)
11 options=(!strip)
12 license=(GPL LGPL)
13 url="http://www.gnu.org/software/gettext/"
14 source=(http://ftp.gnu.org/pub/gnu/gettext/gettext-$pkgver.tar.gz)
15 md5sums=('3dd55b952826d2b32f51308f2f91aa89')
17 build()
19   cd $startdir/src/gettext-$pkgver/gettext-runtime
21   unset LDFLAGS
23   export CFLAGS="$CFLAGS -mms-bitfields"
25 #  patch -p2 < $startdir/src/gettext-0.16.1-build.patch
26   ./configure \
27     --prefix=/usr/i486-mingw32 \
28     --host=i486-mingw32 \
29     --build=$CHOST \
30     || exit 1
32   make || exit 1
33   make install DESTDIR=$startdir/pkg || exit 1
35   cd $startdir/pkg
36   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
37     | xargs -rtl1 i486-mingw32-strip -g
38   rm -rf usr/i486-mingw32/share/{doc,man,gettext,info}