1 # Maintainer: Andreas Krinke <andreas krinke gmx de>
2 # based on the PKGBUILD for physfs by:
3 # Eric Belanger <eric@archlinux.org>
4 # Bjorn Lindeijer <bjorn lindeijer nl>
9 pkgdesc="A library to provide abstract access to various archives (mingw32)"
11 url="http://icculus.org/physfs/"
13 makedepends=('mingw32-gcc' 'cmake')
14 depends=('mingw32-runtime' 'mingw32-zlib')
15 options=('!strip' '!buildflags')
16 source=(http://icculus.org/physfs/downloads/physfs-${pkgver}.tar.gz
18 md5sums=('4e8927c3d30279b03e2592106eb9184a'
19 'ed1e275cf67dc9322f3a6e50e8ddc40c')
22 cd "${srcdir}/physfs-${pkgver}"
24 # fix compiler error due to an unused variable
25 sed -i "/lastDirectory/d" archivers/wad.c
29 export CFLAGS="$CFLAGS -fno-strict-aliasing"
30 export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
32 -DCMAKE_INSTALL_PREFIX=/usr/i486-mingw32 \
33 -DPHYSFS_BUILD_TEST=OFF \
34 -DPHYSFS_BUILD_WX_TEST=OFF \
35 -DCMAKE_TOOLCHAIN_FILE=${srcdir}/win32.cmake
40 cd "${srcdir}/physfs-${pkgver}"
42 make DESTDIR="${pkgdir}" install
44 install -D -m644 LICENSE.txt "${pkgdir}/usr/i486-mingw32/share/licenses/${pkgname}/LICENSE"