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

# source: james
TARBALL=lua-lfs-$PKGVER.tar.gz
MD5SUM=5166c00df1599a54dc97e84852be7f0c
SRC_URL=https://github.com/keplerproject/luafilesystem/archive/v1_7_0_2.tar.gz
BUNDLE= 

SLACKREQ='lua'
SLACKDESC="lua-lfs: lua-lfs $PKGVER (Lua File System library)  
lua-lfs:  
lua-lfs: LuaFileSystem is a Lua library developed to complement the set of 
lua-lfs: functions related to file systems offered by the standard Lua 
lua-lfs: distribution. LuaFileSystem offers a portable way to access the 
lua-lfs: underlying directory structure and file attributes.  
lua-lfs: 
lua-lfs: http://keplerproject.github.io/luafilesystem/index.html
lua-lfs: 
lua-lfs: 
lua-lfs: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### pkg_build
pkg_build() {
	LUAVER=5.3
	LUALIB=/usr/$LIBDIR/lua/$LUAVER

	cd /tmp/lua* &&
	make $MAKEFLAGS &&
	make PREFIX=/usr LUA_LIBDIR=$LUALIB LUA_INC=/usr/include install &&
	mkdir -p /usr/share/doc/luafilesystem &&
	cp -a doc/* /usr/share/doc/luafilesystem &&
	pkg_build_slackdesc	
}

