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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:23:12 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:23:11
  Author: felixonmars
Revision: 1058161

archrelease: copy trunk to community-staging-any

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

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

Copied: python-calmjs.types/repos/community-staging-any/PKGBUILD (from rev 1058158, python-calmjs.types/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:23:11 UTC (rev 1058161)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=calmjs.types
+pkgname=python-calmjs.types
+pkgver=1.0.1
+pkgrel=4
+pkgdesc="Base types for calmjs framework"
+arch=('any')
+url="https://github.com/calmjs/calmjs.types"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
+sha512sums=('e6c14975de2391d55042f36c76f3cafcc690417240014af537b3dcdfee77d320f6d33afcb29c103ad23124aa6117bbd19a89d6a1542c307b141b8aa7f325ae32')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+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}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list