void-packages/srcpkgs/bam/template

25 lines
853 B
Plaintext
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"
update_site="http://matricks.github.io/bam/"
update_pattern='bam-\K[\d.]+\d+'
2014-08-21 23:41:33 +02:00
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
}