blob: c2568d32fc5f8985bf2c73db9f8ac3d67dbe5436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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"
|