void-packages/srcpkgs/bam/template

23 lines
775 B
Bash
Raw Normal View History

2014-08-21 23:41:33 +02:00
# Template file for 'bam'
pkgname=bam
version=0.4.0
revision=1
makedepends="lua-devel"
short_desc="A fast and flexible build system using Lua"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://github.com/matricks/bam"
distfiles="https://github.com/downloads/matricks/bam/${pkgname}-${version}.tar.gz"
checksum=5e4e4920b4d265da582f66774e9b1ec8ddfbe75ddc028fba86c12f686ea18db3
do_build() {
gcc -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_cl.lua >src/internal_base.h
${CC} ${CFLAGS} -Wall -ansi -pedantic src/*.c src/lua/*.c -o bam -I src/lua -lm -lpthread -ldl -rdynamic ${LDFLAGS}
}
do_install() {
vbin bam
vlicense license.txt LICENSE
}