34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'python-gogs-client'
|
|
pkgname=python-gogs-client
|
|
version=1.0.6
|
|
revision=3
|
|
noarch=yes
|
|
wrksrc="gogs_client-${version}"
|
|
build_style=python-module
|
|
pycompile_module="gogs_client"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-future python-requests python-attrs"
|
|
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=4bd585ff86f6d70a245cea3b9b9756205bdaa9f512b314c47f715842970b3d3f
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
# remove tests directory polluting site-packages
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
|
|
}
|
|
|
|
python3-gogs-client_package() {
|
|
noarch=yes
|
|
depends="python3-future python3-requests python3-attrs"
|
|
pycompile_module="gogs_client"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|