updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mingw32-libffi / PKGBUILD
bloba82b4e94a5efab71055687d5d9026b7e2d06ad37
1 # Maintainer: Schala <schalaalexiazeal@gmail.com>
3 pkgbase=libffi
4 pkgname=mingw32-libffi
5 pkgver=3.0.10
6 pkgrel=1
7 pkgdesc="A portable, high level programming interface to various calling conventions (mingw32)"
8 arch=('any')
9 depends=('mingw32-runtime')
10 makedepends=('mingw32-gcc')
11 options=('!libtool' '!strip')
12 license=('MIT')
13 url="http://sourceware.org/libffi"
14 source=(ftp://sourceware.org/pub/libffi/libffi-${pkgver}.tar.gz)
15 md5sums=('79390673f5d07a8fb342bc09b5055b6f')
17 build() {
18   cd "${srcdir}/${pkgbase}-${pkgver}"
20   export CFLAGS="-O2 -mms-bitfields"
21   export PKG_CONFIG_PATH="/usr/i486-mingw32/lib/pkgconfig/"
23   # mingw-ld chokes on --hash-style=gnu
24   unset LDFLAGS
26   ./configure \
27       --prefix=/usr/i486-mingw32 \
28       --host=i486-mingw32 \
29       --build=$CHOST
31   make || return 1
34 package() {
35   cd "${srcdir}/${pkgbase}-${pkgver}"
36   make DESTDIR="${pkgdir}" install || return 1
37   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
38   install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
41 # vim:set ts=2 sw=2 et: