aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-10 13:00:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-10 13:00:35 +0000
commitfe577d2a1f5812b76440fefdf42448b6058d6bd0 (patch)
treee369130b7b64031d3d209a2bbea4b35ab4c98972 /main
parentb38de1ca1fefdd54a2723c67e6bcf218cf165f65 (diff)
downloadaports-fe577d2a1f5812b76440fefdf42448b6058d6bd0.tar.bz2
aports-fe577d2a1f5812b76440fefdf42448b6058d6bd0.tar.xz
main/lua-sec: move from testing
fixes 493
Diffstat (limited to 'main')
-rw-r--r--main/lua-sec/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/lua-sec/APKBUILD b/main/lua-sec/APKBUILD
new file mode 100644
index 0000000000..5d50486b2b
--- /dev/null
+++ b/main/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"