### this file is sourced not run
PKGVER=3.0.rc1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=lua-socket-v3.0-rc1.tar.gz
MD5SUM=08bd2f265b244eb4bf5c2c36bf89b759
SRC_URL=https://github.com/diegonehab/luasocket/archive/v3.0-rc1.tar.gz
BUNDLE=

SLACKREQ='lua'
SLACKDESC='lua-socket: lua-socket 3.0.rc1 (Socket library for Lua)  
lua-socket:  
lua-socket: LuaSocket is a Lua extension library that is composed by two 
lua-socket: parts: a C core that provides support for the TCP and UDP 
lua-socket: transport layers, and a set of Lua modules that add support for 
lua-socket: functionality commonly needed by applications that deal with the 
lua-socket: Internet, such as: SMTP, HTTP, FTP, MIME, URL and filters.  
lua-socket: 
lua-socket: 
lua-socket: 
lua-socket: http://w3.impa.br/~diego/software/luasocket/home.html 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### pkg_build
pkg_build() {
	CONF="PLAT=linux LUAV=5.2 prefix=/usr CDIR=lib64/lua/5.2"
	
	cd /tmp/lua* &&
	make $CONF && make $CONF install && make $CONF install-unix &&
	mkdir -p /usr/share/doc/luasocket &&
	cp -a doc etc samples test gem /usr/share/doc/luasocket &&
	
	pkg_build_slackdesc	
}

