newt: split python{2,3} bindings

This commit is contained in:
Alessio Sergi 2017-01-12 12:39:19 +01:00
parent 91bcf21f20
commit 457bb546e1
3 changed files with 18 additions and 2 deletions

1
srcpkgs/newt-python Symbolic link
View File

@ -0,0 +1 @@
newt

1
srcpkgs/newt-python3 Symbolic link
View File

@ -0,0 +1 @@
newt

View File

@ -1,14 +1,14 @@
# Template file for 'newt'
pkgname=newt
version=0.52.19
revision=2
revision=3
build_style=gnu-configure
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.eu>"
license="GPL-3"
homepage="https://fedorahosted.org/newt/"
distfiles="https://pagure.io/releases/newt/newt-0.52.19.tar.gz"
distfiles="https://pagure.io/releases/newt/newt-${version}.tar.gz"
checksum=08c0db56c21996af6a7cbab99491b774c6c09cef91cd9b03903c84634bff2e80
newt-devel_package() {
@ -21,3 +21,17 @@ newt-devel_package() {
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*
}
}