name = "lua" version = "5.1.3" description = "A simple language, suitable for embedding." owner = "Anders Bergh " depends = {"gcc", "libreadline"} source = { "http://www.lua.org/ftp/lua-%version%.tar.gz", } md5sum = { "looooooooooooooooooooollllll", } variants = { readline = { depends = {"libreadline"} } } defaultvariants = {"readline"} build = [[ cd %srcdir% tar xvfz lua-%version%.tar.gz cd lua-%version% if [ variant readline ]; then echo "Should enable readline, I guess!" fi make linux || return 1 make install DESTDIR="%destdir%" || return 1 ]]