void-packages/srcpkgs/termbox/template
2020-10-03 19:27:21 +02:00

36 lines
988 B
Bash

# Template file for 'termbox'
pkgname=termbox
version=1.1.2
revision=2
build_style=waf3
short_desc="Library for writing text-based user interfaces"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
homepage="https://github.com/nsf/termbox/"
distfiles="https://github.com/nsf/termbox/archive/v${version}.tar.gz"
checksum=61c9940b42b3ac44bf0cba67eacba75e3c02088b8c695149528c77def04d69b1
pre_configure() {
# waf file is self extracting archive written in python
# it self extracts in top level, then runs extracted module in __main__
# importing allows to patch contents of archive
mv waf waf.py
python3 -c 'import waf; print(waf.wafdir + "/waflib/Node.py")' > node
vsed -i "$(cat node)" -e '/raise StopIteration/d'
rm node
mv waf.py waf
}
post_install() {
vlicense COPYING
}
termbox-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}