void-packages/srcpkgs/python-gogs-client/template
2017-03-06 17:21:50 -06:00

36 lines
1.3 KiB
Bash

# Template file for 'python-gogs-client'
pkgname=python-gogs-client
version=1.0.3
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="Library for interacting with a gogs server (Python2)"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
homepage="https://github.com/unfoldingWord-dev/python-gogs-client"
license="MIT"
# License not currently in PyPi: https://github.com/unfoldingWord-dev/python-gogs-client/issues/5
distfiles="${PYPI_SITE}/g/gogs_client/gogs_client-${version}.tar.gz
https://raw.githubusercontent.com/unfoldingWord-dev/python-gogs-client/aec61c5e27044c9b2542de6a7700b386b594d2ab/LICENSE.txt
"
checksum="bcc164e554d30d8048e7c87ff2841fc027852f6b9da056fe4371829c42c95d9a
59daafc62a061a847015d645814ebe5fbefbab50cea063c56aa3f1bf99be7f3e"
skip_extraction=LICENSE.txt
post_install() {
vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/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 ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/LICENSE.txt
}
}