aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lua-moonscript
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
commitb6af1e02efe594039707cd882517663d5370f375 (patch)
treeff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/lua-moonscript
parenta71346b7acebc600960a98c84fb32cfd72fe864b (diff)
downloadaports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2
aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'unmaintained/lua-moonscript')
-rw-r--r--unmaintained/lua-moonscript/APKBUILD51
-rw-r--r--unmaintained/lua-moonscript/alt_getopt-compat.patch10
2 files changed, 61 insertions, 0 deletions
diff --git a/unmaintained/lua-moonscript/APKBUILD b/unmaintained/lua-moonscript/APKBUILD
new file mode 100644
index 0000000000..c2568d32fc
--- /dev/null
+++ b/unmaintained/lua-moonscript/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=lua-moonscript
+pkgver=0.3.2
+_lua_version="5.3"
+pkgrel=0
+pkgdesc="Dynamic scripting language that compiles into Lua"
+url="http://moonscript.org/"
+arch="noarch"
+license="MIT"
+depends="lua-filesystem lua-alt-getopt lua-lpeg lua${_lua_version}"
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="moonscript-$pkgver.tar.gz::https://github.com/leafo/moonscript/archive/v$pkgver.tar.gz
+ alt_getopt-compat.patch"
+
+_builddir="$srcdir"/moonscript-$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() {
+ cd "$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p $pkgdir/usr/bin
+ cp -p bin/moon bin/moonc $pkgdir/usr/bin/
+ mkdir -p $pkgdir/usr/share/lua/$_lua_version
+ cp -pr moon moonscript $pkgdir/usr/share/lua/$_lua_version/
+ sed -i "s/env lua/env lua$_lua_version/" \
+ $pkgdir/usr/bin/moon \
+ $pkgdir/usr/bin/moonc || return 1
+}
+
+md5sums="daee6628cb844c2f79b7e308452ffc6b moonscript-0.3.2.tar.gz
+76eae0a78c93e63f4f1ae4f72a27856e alt_getopt-compat.patch"
+sha256sums="1fb616c1ed43008a03e10579cb9b3eabc9a95fae4f97d3e261819afdbaa6c4b0 moonscript-0.3.2.tar.gz
+80a232b2c61babcd59c1676a822ac788ccb392c5e5df7e8bf08925d282d86611 alt_getopt-compat.patch"
+sha512sums="6b0744bd5d7f5d9f4051d8b294d20cf812c252d2083ba44882dfc4816d8b1fbcc02f2c366cb56a1986f0b19215ac54beb3abfcf4da56143f8bc957550ffadeb3 moonscript-0.3.2.tar.gz
+3241efaf75f57bb149aa9db918186e3901fe64dc8b39f23d9570ba8a1c547b4217520029613dba840e9615054de47a95eca0ffc412e512ab9ef18d480e877f49 alt_getopt-compat.patch"
diff --git a/unmaintained/lua-moonscript/alt_getopt-compat.patch b/unmaintained/lua-moonscript/alt_getopt-compat.patch
new file mode 100644
index 0000000000..c38f06a3f5
--- /dev/null
+++ b/unmaintained/lua-moonscript/alt_getopt-compat.patch
@@ -0,0 +1,10 @@
+--- ./bin/moon.orig
++++ ./bin/moon
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env lua
+
+-require "alt_getopt"
++local alt_getopt = require "alt_getopt"
+ local moonscript = require "moonscript.base"
+
+ local util = require "moonscript.util"