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

# source: james
TARBALL=luaossl-$PKGVER.tar.gz
MD5SUM=ac047aaffa7846eefbf0d75709ecc89f
SRC_URL=https://github.com/wahern/luaossl/archive/rel-20181207.tar.gz
BUNDLE=

SLACKREQ='openssl lua' # 
SLACKDESC="lua-luaossl: lua-luaossl $PKGVER (Openssl binding for Lua)
lua-luaossl: 
lua-luaossl: luaossl is a comprehensive binding to OpenSSL for Lua 5.1, 5.2, and 
lua-luaossl: later. It includes support for certificate and key management, key 
lua-luaossl: generation, signature verification, and deep bindings to the 
lua-luaossl: distinguished name, alternative name, and X.509v3 extension 
lua-luaossl: interfaces; bignum[D, message digest, HMAC, cipher, and CSPRNG 
lua-luaossl: interfaces.
lua-luaossl: 
lua-luaossl: http://25thandclement.com/~william/projects/luaossl.html
lua-luaossl: https://github.com/wahern/luaossl/archive/rel-20181207.tar.gz
"

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

	cd /tmp/luaossl* &&
	make prefix=/usr libdir=/usr/$LIBDIR &&
	make prefix=/usr libdir=/usr/$LIBDIR install &&
	pkg_build_slackdesc
}
