summaryrefslogtreecommitdiffstats
path: root/lua/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2011-01-16 14:03:28 +0100
committerLukc <lukc@upyum.com>2011-01-16 14:03:28 +0100
commitbcd560f573aa07b52b3cd8c29e8614eb7560d3e2 (patch)
tree2d2f7e8d96079adfd38937a22e4a827305b6fa95 /lua/Pkgfile
parent25c4d335bb0bd1669f9e0183cb610a7cd4857c86 (diff)
downloadbase-bcd560f573aa07b52b3cd8c29e8614eb7560d3e2.tar.gz
base-bcd560f573aa07b52b3cd8c29e8614eb7560d3e2.tar.bz2
base-bcd560f573aa07b52b3cd8c29e8614eb7560d3e2.tar.xz
base-bcd560f573aa07b52b3cd8c29e8614eb7560d3e2.zip
Recette de Lua ajoutée.
Diffstat (limited to 'lua/Pkgfile')
-rw-r--r--lua/Pkgfile43
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
+}