24 lines
822 B
Bash
24 lines
822 B
Bash
# Template file for 'bam'
|
|
pkgname=bam
|
|
version=0.5.1
|
|
revision=4
|
|
makedepends="lua53-devel"
|
|
short_desc="Fast and flexible build system using Lua"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="Zlib, MIT"
|
|
homepage="http://github.com/matricks/bam"
|
|
distfiles="https://github.com/matricks/bam/archive/v${version}.tar.gz"
|
|
checksum=cc8596af3325ecb18ebd6ec2baee550e82cb7b2da19588f3f843b02e943a15a9
|
|
|
|
do_build() {
|
|
gcc -Wall -pedantic src/tools/txt2c.c -o src/tools/txt2c
|
|
src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_clang.lua src/driver_cl.lua src/driver_solstudio.lua src/driver_xlc.lua > src/internal_base.h
|
|
${CC} ${CFLAGS} -Wall -pedantic src/*.c src/lua/*.c -o bam -I src/lua -lm -lpthread -ldl -rdynamic ${LDFLAGS}
|
|
}
|
|
|
|
do_install() {
|
|
vbin bam
|
|
vlicense COPYING
|
|
vlicense src/lua/COPYRIGHT
|
|
}
|