[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Mon May 27 22:45:34 UTC 2019


    Date: Monday, May 27, 2019 @ 22:45:33
  Author: eschwartz
Revision: 472057

addpkg: python-shellingham 1.3.1-1 needed for python-poetry

Added:
  python-shellingham/
  python-shellingham/repos/
  python-shellingham/trunk/
  python-shellingham/trunk/PKGBUILD

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

Added: python-shellingham/trunk/PKGBUILD
===================================================================
--- python-shellingham/trunk/PKGBUILD	                        (rev 0)
+++ python-shellingham/trunk/PKGBUILD	2019-05-27 22:45:33 UTC (rev 472057)
@@ -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=1
+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