#Maintainer: Dimitris Tzemos pkgname=physfs pkgver=2.0.1 pkgrel=1dj source=(http://offload2.icculus.org:9090/physfs/downloads/$pkgname-$pkgver.tar.gz) docs=("CHANGELOG.txt" "CREDITS.txt" "INSTALL.txt" "LICENSE.txt" "TODO.txt") url=http://icculus.org/physfs/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "physfs (Library to provide abstract access to various archives)" "PhysicsFS is intended for use in video games, and the design " "was somewhat inspired by Quake 3's file subsystem." "" "Homepage: http://icculus.org/physfs/" ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DPHYSFS_ARCHIVE_7Z=OFF \ -DPHYSFS_BUILD_SHARED=ON \ -DPHYSFS_BUILD_TEST=OFF \ -DPHYSFS_BUILD_WX_TEST=OFF \ -DPHYSFS_INTERNAL_ZLIB=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX:STRING=${LIBDIRSUFFIX} || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 }