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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:24:04 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:24:04
  Author: foutrelis
Revision: 1058201

archrelease: copy trunk to community-staging-x86_64

Added:
  python-rjsmin/repos/community-staging-x86_64/
  python-rjsmin/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058199, python-rjsmin/trunk/PKGBUILD)

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

Copied: python-rjsmin/repos/community-staging-x86_64/PKGBUILD (from rev 1058199, python-rjsmin/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 20:24:04 UTC (rev 1058201)
@@ -0,0 +1,34 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=rjsmin
+pkgname=python-rjsmin
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Fast javascript minifier for Python"
+arch=('x86_64')
+url="https://github.com/ndparker/rjsmin"
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('5645a35c75d215ca925f6595d6d1e1833551ec8eabd620b3874ad78bfa7edbacd692a8f6d4ca006aa4b9acee4371dfc4ad5213c9e895a32cbd67b986fe642df3')
+b2sums=('daf2e42ee4244b04f439fb0dc9301f5bb10bfbe853cc18f206858a7cf9f9d6f7382975e14bea5ac22c3cb533ca38f26e1bf7a21d04a1ebd46457f4b6cf2a3fa2')
+
+build() {
+  cd "${_name}-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "${_name}-$pkgver"
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  export PYTHONPATH="build/lib.linux-${CARCH}-${python_version}/:${PYTHONPATH}"
+  pytest -vv
+}
+
+package() {
+  cd "${_name}-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 {docs/{CHANGES,DESCRIPTION},README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list