diff options
Diffstat (limited to 'testing/lua-sec')
-rw-r--r-- | testing/lua-sec/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/lua-sec/APKBUILD b/testing/lua-sec/APKBUILD new file mode 100644 index 000000000..5d50486b2 --- /dev/null +++ b/testing/lua-sec/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=lua-sec +_name=luasec +pkgver=0.4 +pkgrel=0 +pkgdesc="TLS/SSL Support for Lua" +url="http://www.inf.puc-rio.br/~brunoos/luasec/" +arch="x86 x86_64" +license="MIT" +depends="lua-socket" +makedepends="lua-dev openssl-dev" +install= +subpackages="$pkgname-doc" +source="http://www.inf.puc-rio.br/~brunoos/luasec/download/luasec-$pkgver.tar.gz" + +_builddir="$srcdir"/$_name-$pkgver + +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + make linux || return 1 +} + +package() { + _luasharedir=/usr/share/lua/5.1 + _lualibdir=/usr/lib/lua/5.1 + cd "$_builddir" + mkdir -p "$pkgdir"/$_luasharedir "$pkgdir"/$_lualibdir + make LUAPATH="$pkgdir"/$_luasharedir \ + LUACPATH="$pkgdir"/$_lualibdir \ + install + mkdir -p "$pkgdir"/usr/share/doc/$pkgname + cp -r samples "$pkgdir"/usr/share/doc/$pkgname/ +} + +md5sums="712158d60207bdbb6215fc7e07d8db24 luasec-0.4.tar.gz" |