updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mingw32-atk / PKGBUILD
blobc1422c0ca4438f796400d77d96d144c38c129b68
1 # Maintainer: Rémy Oudompheng <oudomphe@phare.normalesup.org>
2 _pkgbase=atk
3 pkgname=mingw32-atk
4 pkgver=2.2.0
5 pkgrel=1
6 pkgdesc="A library providing a set of interfaces for accessibility (mingw32)"
7 arch=(any)
8 license=('LGPL')
9 depends=(mingw32-glib2)
10 makedepends=(mingw32-gcc)
11 options=(!strip)
12 source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgbase}/${pkgver%.*}/${_pkgbase}-${pkgver}.tar.xz)
13 url='http://www.gtk.org/'
14 sha256sums=('8b22f0e7803dd3734c676ccd68ea999ff1156ca49d99c3de5c1d269ad0c3739d')
16 build() {
17   cd "${srcdir}/atk-${pkgver}"
19   export CFLAGS="-O2 -mms-bitfields"
20   export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig/"
21   unset LDFLAGS PKG_CONFIG_PATH
23   ./configure \
24     --prefix=/usr/i486-mingw32 \
25     --host=i486-mingw32 \
26     --build=$CHOST
27   make
30 package() {
31   cd "${srcdir}/atk-${pkgver}"
32   mkdir -p "$pkgdir/usr/i486-mingw32/lib"
33   make DESTDIR="${pkgdir}" install
35   cd "$pkgdir"
36   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
37     | xargs -rtl1 i486-mingw32-strip -g
38   rm -rf usr/i486-mingw32/share/gtk-doc