2a159f9fba
Closes #14899. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
23 lines
831 B
Bash
23 lines
831 B
Bash
# Template file for 'bam'
|
|
pkgname=bam
|
|
version=0.5.1
|
|
revision=1
|
|
makedepends="lua-devel"
|
|
short_desc="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/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
|
|
}
|