void-packages/srcpkgs/python-xlib/template

30 lines
792 B
Bash

# Template file for 'python-xlib'
pkgname=python-xlib
version=0.22
revision=1
noarch=yes
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
pycompile_module="Xlib"
short_desc="Fully functional X client library for Python2"
maintainer="Enno Boland <gottox@voidlinux.eu>"
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=42dece002a6d6b5f864c11e65decdf1e78f498023551bab45c1cb133bb65cfc1
pre_build() {
sed -i '/setup_requires/d' setup.py
}
python3-xlib_package() {
noarch=yes
depends="python3-six"
pycompile_module="Xlib"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}