7ba1e09b94
Idea by Gentoo. Fuck making your own build systems.
35 lines
1,004 B
Bash
35 lines
1,004 B
Bash
# Template file for 'teeworlds'
|
|
pkgname=teeworlds
|
|
version=0.6.3
|
|
revision=3
|
|
nocross=yes
|
|
wrksrc="${pkgname}-${version}-src"
|
|
hostmakedepends="bam"
|
|
makedepends="zlib-devel SDL-devel glu-devel freetype-devel"
|
|
short_desc="A retro multiplayer shooter"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="custom"
|
|
homepage="https://www.teeworlds.com"
|
|
distfiles="https://downloads.teeworlds.com/${pkgname}-${version}-src.tar.gz"
|
|
checksum=490ee7c372898761c609af8d7b0c6bd55942c6c6fcd7f361eefa00abfc70077b
|
|
|
|
do_configure() {
|
|
sed -i "/cc.includes:Add/a\
|
|
settings.cc.exe_c = '$CC'; \
|
|
settings.cc.exe_cxx = '$CXX'; \
|
|
settings.cc.flags_c:Add('$CFLAGS'); \
|
|
settings.cc.flags_cxx:Add('$CXXFLAGS'); \
|
|
settings.link.exe = '$CXX'; \
|
|
settings.link.flags:Add('${LDFLAGS}');" bam.lua
|
|
bam -v config
|
|
}
|
|
do_build() {
|
|
bam -v server_release client_release
|
|
}
|
|
do_install() {
|
|
vbin teeworlds
|
|
vbin teeworlds_srv
|
|
vmkdir usr/share/teeworlds
|
|
cp -r data ${DESTDIR}/usr/share/teeworlds/data
|
|
vlicense license.txt LICENSE
|
|
}
|