From ed90e08af439861df85b4405021a71967d6c07cd Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Mon, 6 Mar 2017 16:57:29 -0600 Subject: [PATCH] New package: python-gogs-client-1.0.3 --- srcpkgs/python-gogs-client/template | 36 +++++++++++++++++++++++++++++ srcpkgs/python3-gogs-client | 1 + 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/python-gogs-client/template create mode 120000 srcpkgs/python3-gogs-client diff --git a/srcpkgs/python-gogs-client/template b/srcpkgs/python-gogs-client/template new file mode 100644 index 00000000000..3a608001781 --- /dev/null +++ b/srcpkgs/python-gogs-client/template @@ -0,0 +1,36 @@ +# 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 " +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 + } +} diff --git a/srcpkgs/python3-gogs-client b/srcpkgs/python3-gogs-client new file mode 120000 index 00000000000..24a119bfc28 --- /dev/null +++ b/srcpkgs/python3-gogs-client @@ -0,0 +1 @@ +python-gogs-client \ No newline at end of file