diff --git a/srcpkgs/python-xlib/template b/srcpkgs/python-xlib/template index 5e52e76648a..cf310a4b8b4 100644 --- a/srcpkgs/python-xlib/template +++ b/srcpkgs/python-xlib/template @@ -1,15 +1,26 @@ # Template file for 'python-xlib' pkgname=python-xlib -version=0.14 -revision=4 +version=0.19 +revision=1 noarch=yes -build_style=python2-module -hostmakedepends="python-setuptools" +build_style=python-module +hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="Xlib" -short_desc="A fully functional X client library for Python programs" +short_desc="XLib in pure Python (Py2/Py3 compatible)" maintainer="Enno Boland " -license="GPL-2" -homepage="http://python-xlib.sourceforge.net/" -distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=4771b0b6a605e0197ece5432fa601c61df724b32544239f463a867200f2160eb +license="LGPL-2.1" +homepage="https://github.com/python-xlib/python-xlib" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=39302be45204d36fb0b289c87cdabf2d6d40e50673199cb72f4b1ded6703c5c7 + +python3-xlib_package() { + noarch=yes + depends="python3" + pycompile_module="Xlib" + replaces="python3.4-xlib>=0" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-xlib b/srcpkgs/python3-xlib new file mode 120000 index 00000000000..c2832fd0e80 --- /dev/null +++ b/srcpkgs/python3-xlib @@ -0,0 +1 @@ +python-xlib \ No newline at end of file