void-packages/srcpkgs/klystrack/template

48 lines
1.3 KiB
Bash
Raw Normal View History

2017-04-18 10:07:06 +00:00
# Template file for 'klystrack'
pkgname=klystrack
2017-05-11 11:37:30 +00:00
version=1.7.2
2017-04-18 10:07:06 +00:00
revision=1
2017-05-11 11:37:30 +00:00
_klystronsha=f5114db4de299ece73852becbef56d7d461bf421
2017-04-18 10:07:06 +00:00
create_wrksrc=yes
hostmakedepends="SDL2-devel"
makedepends="SDL2_image-devel SDL2_mixer-devel"
short_desc="Chiptune music tracker"
maintainer="allan <mail@may.mooo.com>"
license="BSD"
homepage="http://kometbomb.github.io/klystrack/"
2017-05-11 11:37:30 +00:00
distfiles="https://github.com/kometbomb/klystrack/archive/${version}.tar.gz
2017-04-18 10:07:06 +00:00
https://github.com/kometbomb/klystron/archive/${_klystronsha}.tar.gz"
2017-05-11 11:37:30 +00:00
checksum="96b46fca5cd150a7ca0ea27cc339eb2b2394e48580ced1d43b0083bb8a628d5c
877bf4b7dc506ede2309c5c9c838d58d52ff031fef7415e9b491ce584078e2f5"
2017-04-18 10:07:06 +00:00
do_build() {
test -d klystron ||
mv klystron-${_klystronsha} klystron
2017-05-11 11:37:30 +00:00
cd klystrack-${version}
2017-04-18 10:07:06 +00:00
sed -i \
-e 's/\r$//' \
-e "/^CFLAGS/s,\$, ${CFLAGS}," \
-e "/^LDFLAGS/s:\$: ${LDFLAGS}:" \
-e 's/^CC := gcc/CC := $(CC)/' \
2017-05-11 11:37:30 +00:00
-e '37s/$/ -lSDL2_mixer/' \
2017-04-18 10:07:06 +00:00
Makefile
sed -i \
-e 's/\r$//' \
-e 's/^CC = gcc/CC = $(CC)/' \
../klystron/Makefile
make CC=$CC $makejobs CFG=release
}
do_install() {
2017-05-11 11:37:30 +00:00
cd klystrack-${version}
2017-04-18 10:07:06 +00:00
vbin bin.release/klystrack
vmkdir usr/lib/klystrack
vcopy res usr/lib/klystrack
vcopy key usr/lib/klystrack
vmkdir usr/share/examples/klystrack
vcopy examples usr/share/examples/klystrack
vlicense linux/copyright
}