[arch-commits] Commit in python-cssselect/repos (staging-any staging-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Sep 19 09:55:51 UTC 2015


    Date: Saturday, September 19, 2015 @ 11:55:51
  Author: fyan
Revision: 246584

archrelease: copy trunk to staging-any

Added:
  python-cssselect/repos/staging-any/
  python-cssselect/repos/staging-any/PKGBUILD
    (from rev 246583, python-cssselect/trunk/PKGBUILD)

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

Copied: python-cssselect/repos/staging-any/PKGBUILD (from rev 246583, python-cssselect/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-19 09:55:51 UTC (rev 246584)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+
+pkgbase=python-cssselect
+pkgname=('python-cssselect' 'python2-cssselect')
+pkgver=0.9.1
+pkgrel=3
+license=('BSD')
+arch=('any')
+url="http://pypi.python.org/pypi/cssselect"
+makedepends=('python2' 'python')
+source=("http://pypi.python.org/packages/source/c/cssselect/cssselect-${pkgver}.tar.gz")
+md5sums=('c74f45966277dc7a0f768b9b0f3522ac')
+
+prepare() {
+  cp -a cssselect-${pkgver} python2-cssselect-${pkgver}
+}
+
+package_python-cssselect() {
+  pkgdesc="A Python3 library that parses CSS3 Selectors and translates them to XPath 1.0"
+  depends=('python')
+
+  cd cssselect-${pkgver}
+  python setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-cssselect() {
+  pkgdesc="A Python2 library that parses CSS3 Selectors and translates them to XPath 1.0"
+  depends=('python2')
+
+  cd python2-cssselect-${pkgver}
+
+  # Fix python2 shebang
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' cssselect/tests.py
+
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+  
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list