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

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


    Date: Tuesday, November 10, 2020 @ 04:07:12
  Author: foutrelis
Revision: 748496

archrelease: copy trunk to community-staging-any

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

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

Copied: python-csscompressor/repos/community-staging-any/PKGBUILD (from rev 748495, python-csscompressor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:07:12 UTC (rev 748496)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=csscompressor
+pkgname=python-csscompressor
+pkgver=0.9.5
+pkgrel=2
+pkgdesc="Port of YUI CSS Compressor to Python"
+arch=('any')
+url="https://github.com/sprymix/csscompressor"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('aee16b5af8b1b780a0fef10d359864a5a21a90b7196740c8b7efef25d1ba4d8197e9fce03483d0e2331abc736290cc6b862e43ee65d1b76260310aea65fc6eb6')
+
+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 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