2017-03-06 23:57:29 +01:00
|
|
|
# Template file for 'python-gogs-client'
|
|
|
|
pkgname=python-gogs-client
|
2017-05-26 19:59:05 +02:00
|
|
|
version=1.0.5
|
2017-03-06 23:57:29 +01:00
|
|
|
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"
|
2017-04-21 15:28:44 +02:00
|
|
|
short_desc="Python2 library for interacting with a gogs server"
|
2017-03-06 23:57:29 +01:00
|
|
|
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
|
|
|
|
homepage="https://github.com/unfoldingWord-dev/python-gogs-client"
|
|
|
|
license="MIT"
|
2017-04-21 15:28:44 +02:00
|
|
|
distfiles="${PYPI_SITE}/g/gogs_client/gogs_client-${version}.tar.gz"
|
2017-05-26 19:59:05 +02:00
|
|
|
checksum=73c2859f9a2e98686d5bf06ce288547f5916d85073311709383aebc3706c4483
|
2017-03-06 23:57:29 +01:00
|
|
|
|
|
|
|
post_install() {
|
2017-04-21 15:28:44 +02:00
|
|
|
# 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
|
2017-03-06 23:57:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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*
|
2017-04-21 15:28:44 +02:00
|
|
|
vlicense LICENSE.txt
|
2017-03-06 23:57:29 +01:00
|
|
|
}
|
|
|
|
}
|