# $Id: PKGBUILD 1215 2009-08-14 01:36:52Z dgriffiths $ # Maintainer: Bjorn Lindeijer # Maintainer: Mateusz Herych pkgname=physfs pkgver=2.0.0 pkgrel=2 pkgdesc="A library to provide abstract access to various archives." arch=('i686' 'x86_64') url="http://icculus.org/physfs/" license=('zlib') depends=('zlib') makedepends=('cmake') source=(http://icculus.org/physfs/downloads/$pkgname-$pkgver.tar.gz) md5sums=('cfc53e0c193914c9c5ab522e58737373') build() { cd $startdir/src/$pkgname-$pkgver export CFLAGS="$CFLAGS -fno-strict-aliasing" export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1 make || return 1 make DESTDIR=$startdir/pkg install install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }