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

# source: james
TARBALL=luaposix-master-20180911.tar.gz
MD5SUM=ccc321a2b13d4d093f70a98d44291bfd
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='lua'
SLACKDESC="lua-posix: lua-posix $PKGVER (POSIX library for Lua)  
lua-posix:  
lua-posix: This is a POSIX library for Lua which enables Lua scripts to access 
lua-posix: low-level system library in a POSIX-compatible system. It also 
lua-posix: includes bindings for curses.  
lua-posix: 
lua-posix: https://github.com/luaposix/luaposix 
lua-posix: 
lua-posix: 
lua-posix: 
lua-posix: 
"

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

	cd /tmp/lua* &&
	
	./build-aux/luke all &&
	./build-aux/luke install PREFIX=/usr INST_LIBDIR=$LUALIB &&
	echo $LUALIB
	pkg_build_slackdesc	
}

