void-packages/srcpkgs/python-xlib/template
2019-03-01 12:04:45 -03:00

29 lines
797 B
Bash

# Template file for 'python-xlib'
pkgname=python-xlib
version=0.23
revision=1
build_style=python-module
pycompile_module="Xlib"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
short_desc="Fully functional X client library for Python2"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/python-xlib/python-xlib"
distfiles="${homepage}/releases/download/${version}/python-xlib-${version}.tar.bz2"
checksum=c3deb8329038620d07b21be05673fa5a495dd8b04a2d9f4dca37a3811d192ae4
archs=noarch
pre_build() {
sed -i '/setup_requires/d' setup.py
}
python3-xlib_package() {
archs=noarch
depends="python3-six"
pycompile_module="Xlib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}