From bcd560f573aa07b52b3cd8c29e8614eb7560d3e2 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sun, 16 Jan 2011 14:03:28 +0100 Subject: Recette de Lua ajoutée. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/Pkgfile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lua/Pkgfile (limited to 'lua/Pkgfile') 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 " +maintainer="Lukc " +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 +} -- cgit v1.2.3-70-g09d2