mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-28 01:41:25 +02:00
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
# 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"
|