void-packages/srcpkgs/python-mygpoclient/template

40 lines
1.2 KiB
Bash

# Template file for 'python-mygpoclient'
pkgname=python-mygpoclient
version=1.8
revision=2
noarch=yes
wrksrc="mygpoclient-${version}"
build_style=python-module
pycompile_module="mygpoclient"
hostmakedepends="python-devel python3-devel"
depends="python"
short_desc="Client Library for gpodder.net (Python2)"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/gpodder/mygpoclient"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
alternatives="
mygpoclient:mygpo-bpsync:/usr/bin/mygpo-bpsync2
mygpoclient:mygpo-list-devices:/usr/bin/mygpo-list-devices2
mygpoclient:mygpo-simple-client:/usr/bin/mygpo-simple-client2"
pre_build() {
sed -i '/share\/man\/man1/d' setup.py
}
python3-mygpoclient_package() {
alternatives="
mygpoclient:mygpo-bpsync:/usr/bin/mygpo-bpsync3
mygpoclient:mygpo-list-devices:/usr/bin/mygpo-list-devices3
mygpoclient:mygpo-simple-client:/usr/bin/mygpo-simple-client3"
short_desc="${short_desc/Python2/Python3}"
pycompile_module="mygpoclient"
noarch=yes
depends="python3"
pkg_install() {
vmove usr/lib/python3*
vmove usr/bin/mygpo-*3
}
}