[arch-commits] Commit in python-click/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 15:54:28 UTC 2020
Date: Monday, November 9, 2020 @ 15:54:28
Author: foutrelis
Revision: 747226
archrelease: copy trunk to community-staging-any
Added:
python-click/repos/community-staging-any/
python-click/repos/community-staging-any/PKGBUILD
(from rev 747225, python-click/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-click/repos/community-staging-any/PKGBUILD (from rev 747225, python-click/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:54:28 UTC (rev 747226)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Carl George < arch at cgtx dot us >
+
+pkgbase=python-click
+pkgname=("python-click" "python2-click")
+_realname=click
+pkgver=7.1.2
+pkgrel=2
+pkgdesc="A simple wrapper around optparse for powerful command line utilities"
+arch=("any")
+url="http://click.pocoo.org/"
+license=("BSD")
+makedepends=("python-setuptools" "python2-setuptools")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pallets/click/archive/${pkgver}.tar.gz")
+sha512sums=('d0caf2fb0a258774a18a7b8f83bdfa73abeb70196a70b45a6cc35befaeb862d068d2f2cce4e27201ab2e3adcd02e7e2f099d6c37c497a507010eefa10ad16eba')
+
+prepare() {
+ cp -a $_realname-$pkgver{,-python2}
+}
+
+build() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/${_realname}-${pkgver}-python2"
+ python2 setup.py build
+}
+
+package_python-click() {
+ depends=("python")
+ cd "${srcdir}/${_realname}-${pkgver}"
+ python setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -Dm644 "LICENSE.rst" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst"
+}
+
+package_python2-click() {
+ depends=("python2")
+ cd "${srcdir}/${_realname}-${pkgver}-python2"
+ python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -Dm644 "LICENSE.rst" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst"
+}
More information about the arch-commits
mailing list