aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-tnetstrings/APKBUILD
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-05-17 07:18:47 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-05-17 07:49:59 +0000
commit696c10b8957b7ced1a3a20337346b95ea7cef52c (patch)
tree0f718410cd0b8a9b0ca715b845f75c2d1ed0f968 /testing/lua-tnetstrings/APKBUILD
parent9810e8df8afbc3a472f61def1027b2a4e1f8358d (diff)
downloadaports-696c10b8957b7ced1a3a20337346b95ea7cef52c.tar.bz2
aports-696c10b8957b7ced1a3a20337346b95ea7cef52c.tar.xz
testing/lua-tnetstrings: package added
Diffstat (limited to 'testing/lua-tnetstrings/APKBUILD')
-rw-r--r--testing/lua-tnetstrings/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/lua-tnetstrings/APKBUILD b/testing/lua-tnetstrings/APKBUILD
new file mode 100644
index 0000000000..efd5834bc1
--- /dev/null
+++ b/testing/lua-tnetstrings/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer:
+pkgname=lua-tnetstrings
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Tagged netstrings implementation for Lua"
+url=https://github.com/jsimmons/tnetstrings.lua
+arch=noarch
+license=BSD
+depends=lua
+source=http://github.com/downloads/jsimmons/tnetstrings.lua/tnetstrings-$pkgver.tar.bz2
+
+_builddir=$srcdir/tnetstrings-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ :
+}
+
+package() {
+ cd "$_builddir"
+ local dir=$pkgdir/usr/share/lua/5.1
+ install -d "$dir"
+ install -m 644 "$_builddir/tnetstrings.lua" "$dir"
+}
+
+md5sums="7ff1f79d9711f9e1f307bc747d75a522 tnetstrings-1.1.0.tar.bz2"