void-packages/srcpkgs/bam/template
Jürgen Buchmüller b8918e2a7d lua: update to 5.3.1
+ Rename lua and lua-devel to lua52 and lua52-devel
+ Modify packages depending on lua52 accordingly:
+ Many packages auto-detect lua52 files
+ Some packages need hints where / how to find lua52
+ One package (xmoto) downgraded to lua51, because it wouldn't find lua52
+ One package (vim) upgraded to lua (5.3.1)

There may be more packages upgradable without problems.
I didn't want to change too much in this move without the
respective package maintainers first taking a look.

Most notably conky-cli wouldn't work with lua52. I upgraded it
to 1.10.0 (same as conky) and tried to keep the flags the same
for the change from gnu-configure to cmake.
2015-10-02 11:24:59 +02:00

22 lines
777 B
Bash

# Template file for 'bam'
pkgname=bam
version=0.4.0
revision=3
makedepends="lua52-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
}