# Template file for 'physfs'
pkgname=physfs
version=2.0.3
revision=2
build_style=cmake
configure_args="-DPHYSFS_BUILD_TEST=OFF -DPHYSFS_BUILD_WX_TEST=OFF
 -DPHYSFS_BUILD_STATIC=OFF"
hostmakedepends="cmake"
makedepends="zlib-devel readline-devel"
short_desc="Library to provide abstract access to various archives"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://icculus.org/physfs/"
license="zlib"
distfiles="http://icculus.org/physfs/downloads/physfs-$version.tar.bz2"
checksum=ca862097c0fb451f2cacd286194d071289342c107b6fe69079c079883ff66b69
long_desc="
 It is intended for use in video games, and the design was somewhat inspired
 by Quake 3's file subsystem. The programmer defines a write directory on
 the physical filesystem. No file writing done through the PhysicsFS API can
 leave that write directory, for security."

physfs-devel_package() {
	depends="readline-devel zlib-devel physfs-${version}_${revision}"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/include
	}
}

physfs_package() {
	pkg_install() {
		vmove usr
	}
}