termbox: build with waf3

This commit is contained in:
Piotr Wójcik 2020-06-20 22:17:08 +02:00 committed by Piotr
parent 4894001ec7
commit 1e8cd67d81

View file

@ -2,8 +2,7 @@
pkgname=termbox
version=1.1.2
revision=2
build_style=waf
hostmakedepends="python"
build_style=waf3
short_desc="Library for writing text-based user interfaces"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
@ -11,6 +10,17 @@ 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
}