24 lines
853 B
Text
24 lines
853 B
Text
# 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+'
|
|
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
|
|
}
|