void-packages/srcpkgs/python-gogs-client/template

34 lines
1.1 KiB
Bash

# Template file for 'python-gogs-client'
pkgname=python-gogs-client
version=1.0.5
revision=1
noarch=yes
wrksrc="gogs_client-${version}"
build_style=python-module
pycompile_module="gogs_client"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-future python-requests"
short_desc="Python2 library for interacting with a gogs server"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
homepage="https://github.com/unfoldingWord-dev/python-gogs-client"
license="MIT"
distfiles="${PYPI_SITE}/g/gogs_client/gogs_client-${version}.tar.gz"
checksum=73c2859f9a2e98686d5bf06ce288547f5916d85073311709383aebc3706c4483
post_install() {
# License not currently in PyPI: https://github.com/unfoldingWord-dev/python-gogs-client/issues/5
$XBPS_FETCH_CMD https://raw.githubusercontent.com/unfoldingWord-dev/python-gogs-client/master/LICENSE.txt
vlicense LICENSE.txt
}
python3-gogs-client_package() {
noarch=yes
depends="python3-future python3-requests"
pycompile_module="gogs_client"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}