1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/development/compilers/qcmm/builder.sh
Eelco Dolstra 09ab596e0f * Remove calls to fail().
svn path=/nixpkgs/branches/stdenv-updates/; revision=11690
2008-04-23 07:34:20 +00:00

30 lines
522 B
Bash

source $stdenv/setup
configureFlags="--with-lua=$lua"
MKFLAGS="-w$lua/include/lauxlib.h,$lua/include/luadebug.h,$lua/include/lua.h,$lua/include/lualib.h"
buildPhase() {
mk timestamps
mk $MKFLAGS all.opt
}
installPhase() {
mk $MKFLAGS install.opt
for file in $out/bin/*.opt; do
mv $file ${file%.opt}
done
find $out/man -type f -exec gzip -9 {} \;
find $out -name \*.a -exec echo stripping {} \; \
-exec strip -S {} \;
patchELF $out
}
checkPhase="mk $MKFLAGS test.opt"
genericBuild