void-packages/srcpkgs/newt/template
2021-09-09 07:54:17 +07:00

36 lines
955 B
Bash

# Template file for 'newt'
pkgname=newt
version=0.52.21
revision=4
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="LGPL-2.0-only"
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"
pkg_install() {
vmove usr/lib/python2*
}
}
newt-python3_package() {
short_desc+=" - Python3 bindings"
pkg_install() {
vmove usr/lib/python3*
}
}