### this file is sourced not run
PKGVER=3.0.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=physfs-$PKGVER.tar.bz2
MD5SUM=359f102bcbd62accf84ef32f4863255d
SRC_URL=https://www.icculus.org/physfs/downloads/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libphysfs: libphysfs $PKGVER (Archive access library)
libphysfs: 
libphysfs: PhysicsFS is a library to provide abstract access to various 
libphysfs: archives. arious archives. It is intended for use in video games, and 
libphysfs: the design was somewhat inspired by Quake 3's file subsystem.
libphysfs: 
libphysfs: https://icculus.org/physfs/
libphysfs: 
libphysfs: 
libphysfs: 
libphysfs: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/physfs* &&
	patch -Np1 -i ../pkg/upstream-a29fef4a20fd.patch
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/physfs*
	CFLAGS="$CFLAGS -Wno-error=maybe-uninitialized"
	CMAKEFLAGS="$CMAKEFLAGS -DLIB_SUFFIX=64"
	pkg_build_cmake && pkg_build_slackdesc
}


