37 lines
939 B
Bash
37 lines
939 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="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/nsf/termbox/"
|
|
distfiles="https://github.com/nsf/termbox/archive/v${version}.tar.gz"
|
|
checksum=61c9940b42b3ac44bf0cba67eacba75e3c02088b8c695149528c77def04d69b1
|
|
|
|
post_extract() {
|
|
# 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
|
|
cp waf waf.py
|
|
sed -i '/__name__.*__main__/i sys.exit(0)' waf.py
|
|
python3 waf.py
|
|
ln -s .waf3-* .waf3
|
|
rm waf.py
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|