[arch-commits] Commit in python-rcssmin/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sun Nov 21 20:46:54 UTC 2021


    Date: Sunday, November 21, 2021 @ 20:46:54
  Author: dvzrv
Revision: 1053951

archrelease: copy trunk to community-x86_64

Added:
  python-rcssmin/repos/community-x86_64/PKGBUILD
    (from rev 1053950, python-rcssmin/trunk/PKGBUILD)
Deleted:
  python-rcssmin/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-21 20:46:47 UTC (rev 1053950)
+++ PKGBUILD	2021-11-21 20:46:54 UTC (rev 1053951)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=rcssmin
-pkgname=python-rcssmin
-pkgver=1.0.6
-pkgrel=4
-pkgdesc="Fast CSS minifier for Python"
-arch=('x86_64')
-url="https://github.com/ndparker/rcssmin"
-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=('5129a6007755a5b1949256bba7ad3616a08034d7bfcf06a1f9d8143897dddc5d2f6b8a0ebde7abb2e8b12e5b1aee2e46260e59101a78f35026e15f9f6503db77')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  # in the next release hopefully plain pytest -v
-  python run_tests.py -q tests
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  mv -v "${pkgdir}/usr/share/doc/"{${_name},${pkgname}}
-}

Copied: python-rcssmin/repos/community-x86_64/PKGBUILD (from rev 1053950, python-rcssmin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-21 20:46:54 UTC (rev 1053951)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=rcssmin
+pkgname=python-rcssmin
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Fast CSS minifier for Python"
+arch=(x86_64)
+url="https://github.com/ndparker/rcssmin"
+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=('9dc7fac0fef73c389baf8fc132e58599471517a2b77b13fe6bfabd30246b46bf859f7307ff1606d6634bdcdc472bdde0882fe7282018a34fba7b8fc80f6e9279')
+b2sums=('162ec087b791a4ee0c23994cea431e01f76c199c1d2118a75c9e49ebfc0d4f46fc4088126032851446acf2bd7b76b8f17095896100338636f4df8de75612f55d')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  local _python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build/lib.linux-${CARCH}-${_python_version}:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}



More information about the arch-commits mailing list