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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:04:23 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:04:23
  Author: foutrelis
Revision: 748446

archrelease: copy trunk to community-staging-any

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

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

Copied: python-calmjs/repos/community-staging-any/PKGBUILD (from rev 748442, python-calmjs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:04:23 UTC (rev 748446)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=calmjs
+pkgname=python-calmjs
+pkgver=3.4.1
+pkgrel=2
+pkgdesc="framework for building toolchains and utilities for working with the JavaScript/Node.js ecosystem"
+arch=('any')
+url="https://github.com/calmjs/calmjs"
+license=('GPL2')
+depends=('python-calmjs.parse' 'python-calmjs.types' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
+sha512sums=('3ac22ee03b0450141376ddcad1ac559e23fc15b7b496937a3b43c7334510ee1b6338b3a21c5ea875c908f4c8bb0c3657f18d83ac77cd9c76cc9f584a330316ca')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  # direct pytest setup not supported (yet)
+  # https://github.com/calmjs/calmjs/issues/58
+  python setup.py test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list