[arch-commits] Commit in python-shellingham/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:34:58 UTC 2019


    Date: Friday, October 25, 2019 @ 15:34:58
  Author: felixonmars
Revision: 519101

archrelease: copy trunk to community-staging-any

Added:
  python-shellingham/repos/community-staging-any/
  python-shellingham/repos/community-staging-any/PKGBUILD
    (from rev 519098, python-shellingham/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: python-shellingham/repos/community-staging-any/PKGBUILD (from rev 519098, python-shellingham/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:34:58 UTC (rev 519101)
@@ -0,0 +1,48 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Clint Valentine <valentine.clint at gmail.com>
+
+_pkgname=shellingham
+pkgbase=python-shellingham
+pkgname=('python-shellingham' 'python2-shellingham')
+pkgver=1.3.1
+pkgrel=2
+pkgdesc="Detect what shell the current Python executable is running in."
+arch=('any')
+url="https://github.com/sarugaku/${_pkgname}"
+license=('ISC')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock'
+              'python2-pytest-runner' 'python2-pytest-mock')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('b1d83d3004c4126a86a42ca42c1e5095695c585a18e814bff13aa91ee8398c1e')
+b2sums=('eab42fe8ccf203c4107f3a89046efbf8bd45b5731a1117a431af4932950cb56665582346916d55ada00cbec4800c47aeb3d6673dc0c7ce09db09f48fa7da08f9')
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py pytest
+    python2 setup.py pytest
+}
+
+package_python-shellingham() {
+    depends=('python')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-shellingham() {
+    depends=('python2')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list