# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description shell written in Lua/C++
long_description luash is a shell written in Lua/C++ that allow you to run command using Lua syntax
homepage http://luaforge.net/projects/luash
master_sites http://files.luaforge.net/releases/luash/luash/luash${version}
dist_subdir ${name}/${version}
checksums md5 67bbb8985166579686361fe840e016c0 \
sha1 ef1d56843f19a29b96f6d5ce8f983b54074b955f \
rmd160 165d88850e8d068d7586f1785b36dd20c9c8ce37
# patch for luash.lua addresses a change in API for os.execute() in 5.2
# remove it if a lua51 port is introduced and used to compile luash
patchfiles patch-makefile.diff \
build.args CXX=${configure.cxx} \
CXX_FLAGS="${configure.cppflags} ${configure.cxxflags} \
[get_canonical_archflags cxx] ${configure.ldflags}"
destroot.destdir PREFIX=${destroot}${prefix}
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} COPYING README ${destroot}${prefix}/share/doc/${name}