# $Id: PKGBUILD 197284 2013-10-25 00:41:39Z eric $ # Maintainer: Eric BĂ©langer pkgname=physfs pkgver=2.0.3 pkgrel=2 pkgdesc="A library to provide abstract access to various archives" arch=('i686' 'x86_64' 'mips64el') url="http://icculus.org/physfs/" license=('ZLIB') depends=('zlib') makedepends=('cmake' 'doxygen') source=(http://icculus.org/physfs/downloads/${pkgname}-${pkgver}.tar.bz2) sha1sums=('327308c777009a41bbabb9159b18c4c0ac069537') build() { mkdir build cd build cmake ../${pkgname}-${pkgver} -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DPHYSFS_BUILD_TEST=OFF -DPHYSFS_BUILD_WX_TEST=OFF make all docs } package() { cd build make DESTDIR="${pkgdir}" install install -d "${pkgdir}"/usr/share/{doc/physfs,man/man3} install -m644 docs/html/* "${pkgdir}/usr/share/doc/physfs" install -m644 docs/man/man3/* "${pkgdir}/usr/share/man/man3" for i in author Deinit description extension Free Init major Malloc minor opaque patch Realloc url ; do mv "${pkgdir}/usr/share/man/man3/$i.3" "${pkgdir}/usr/share/man/man3/PHYSFS_$i.3" done install -D -m644 ../${pkgname}-${pkgver}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }