1 # Maintainer: Schala <schalaalexiazeal@gmail.com>
7 pkgdesc="A portable, high level programming interface to various calling conventions (mingw32)"
9 depends=('mingw32-runtime')
10 makedepends=('mingw32-gcc')
11 options=('!libtool' '!strip')
13 url="http://sourceware.org/libffi"
14 source=(ftp://sourceware.org/pub/libffi/libffi-${pkgver}.tar.gz)
15 md5sums=('79390673f5d07a8fb342bc09b5055b6f')
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
27 --prefix=/usr/i486-mingw32 \
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: