diff --git a/srcpkgs/termbox/template b/srcpkgs/termbox/template index e69191084d6..f1c4f8b2727 100644 --- a/srcpkgs/termbox/template +++ b/srcpkgs/termbox/template @@ -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 " 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 }