updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / mingw32-pixman / PKGBUILD
blob2efa84a6ae2cde8d1aa552733e33f0c9bd26dbb8
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=mingw32-pixman
4 pkgver=0.24.0
5 pkgrel=1
6 pkgdesc="Pixman library (mingw32)"
7 arch=(any)
8 url="http://xorg.freedesktop.org"
9 license=('LGPL' 'MPL')
10 depends=(mingw32-runtime)
11 makedepends=(mingw32-gcc)
12 options=(!strip)
13 source=(http://xorg.freedesktop.org/releases/individual/lib/pixman-${pkgver}.tar.bz2)
14 sha1sums=('a3b73c3ea6cada20d705203a394f574aa69e2177')
16 build() {
17   cd "${srcdir}/pixman-${pkgver}"
18   export CFLAGS="-O2 -mms-bitfields"
19   export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig/"
20   unset LDFLAGS PKG_CONFIG_PATH
21   ./configure \
22     --prefix=/usr/i486-mingw32 \
23     --host=i486-mingw32 \
24     --build=$CHOST \
25     --disable-gtk
26   make
29 package() {
30   cd "${srcdir}/pixman-${pkgver}"
31   make DESTDIR="${pkgdir}" install
33   cd "$pkgdir"
34   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
35     | xargs -rtl1 i486-mingw32-strip -g
36   rm -rf usr/i486-mingw32/share