void-packages/srcpkgs/newt/template

39 lines
1005 B
Bash

# Template file for 'newt'
pkgname=newt
version=0.52.21
revision=1
build_style=gnu-configure
hostmakedepends="python-devel python3-devel"
makedepends="slang-devel popt-devel python3-devel python-devel"
short_desc="Library for color text mode, widget based user interfaces"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3"
homepage="https://pagure.io/newt/"
distfiles="https://pagure.io/releases/newt/newt-${version}.tar.gz"
checksum=265eb46b55d7eaeb887fca7a1d51fe115658882dfe148164b6c49fccac5abb31
newt-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
newt-python_package() {
short_desc+=" - Python2 bindings"
pycompile_module="snake.py"
pkg_install() {
vmove usr/lib/python2*
}
}
newt-python3_package() {
short_desc+=" - Python3 bindings"
pycompile_module="snake.py"
pkg_install() {
vmove usr/lib/python3*
}
}