[arch-commits] Commit in python-css-parser/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Fri Jan 4 08:26:44 UTC 2019
Date: Friday, January 4, 2019 @ 08:26:42
Author: eschwartz
Revision: 420496
archrelease: copy trunk to community-any
Added:
python-css-parser/repos/community-any/
python-css-parser/repos/community-any/PKGBUILD
(from rev 420495, python-css-parser/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-css-parser/repos/community-any/PKGBUILD (from rev 420495, python-css-parser/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-01-04 08:26:42 UTC (rev 420496)
@@ -0,0 +1,37 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=css-parser
+pkgbase='python-css-parser'
+pkgname=('python-css-parser' 'python2-css-parser')
+pkgver=1.0.4
+pkgrel=1
+pkgdesc="A CSS Cascading Style Sheets library for Python"
+arch=('any')
+url="https://github.com/ebook-utils/${_pkgname}"
+license=('LGPL')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
+sha512sums=('3781128e55c1e72aa00369873e214f683e3f42944ae83d399697adb7d2966f68fb500c39982845ce9cd06078e4021838d82b06f99d90938069371da8a89a0857'
+ 'SKIP')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) <kovid at kovidgoyal.net>
+
+build() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+ python2 setup.py build
+}
+
+package_python-css-parser() {
+ depends=('python')
+
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-css-parser() {
+ depends=('python2')
+
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list