diff options
Diffstat (limited to 'lua/Pkgfile')
-rw-r--r-- | lua/Pkgfile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lua/Pkgfile b/lua/Pkgfile new file mode 100644 index 0000000..3b7b6b8 --- /dev/null +++ b/lua/Pkgfile @@ -0,0 +1,43 @@ +description="A powerful, fast, lightweight, embeddable scripting language." +longdesc="Lua combines simple procedural syntax with powerful data description +constructs based on associative arrays and extensible semantics. Lua is +dynamically typed, runs by interpreting bytecode for a register-based +virtual machine, and has automatic memory management with incremental +garbage collection, making it ideal for configuration, scripting, and +rapid prototyping." +url=http://www.lua.org +packager="Tilman Sauerbeck <tilman AT crux DOT nu>" +maintainer="Lukc <lukc AT upyum DOT com>" +lastver="wcat http://www.lua.org/ftp/ | grep '\.tar\.gz' | sed -e 's/\.tar\.gz.*//;s/.*lua-//;/all/d' | tail -n 1" +license=MIT +depends=() + +name=lua +version=5.1.4 +release=1 +source=( + http://www.lua.org/ftp/$name-$version.tar.gz + $name.diff +) + +# XXX: À faire +# - Compilation croisée. +# - Construction statique. +# - Installation dans des préfixes alternatifs. +# - Filer le paquet à Kooda ? + +build() { + cd $name-$version + + patch -Np1 -i $SRC/$name.diff + + make linux + make INSTALL_TOP=$PKG/usr install + + install -D -m 0644 etc/lua.pc $PKG/usr/lib/pkgconfig/lua.pc + if [[ "$mandir" != "/usr/man" ]]; then + mkdir -p $PKG$mandir + mv $PKG/usr/man/* $PKG$mandir/ + rmdir $PKG/usr/man + fi +} |