mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 13:17:15 +08:00
python-cssselect: updated and splitted into python2-cssselect and python3-cssselect)
This commit is contained in:
parent
97ddde80b9
commit
595743df24
45
python-cssselect/PKGBUILD
Normal file
45
python-cssselect/PKGBUILD
Normal file
@ -0,0 +1,45 @@
|
||||
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
||||
|
||||
pkgbase=python-cssselect
|
||||
pkgname=('python2-cssselect' 'python3-cssselect')
|
||||
pkgver=0.9.1
|
||||
pkgrel=1
|
||||
license=('BSD')
|
||||
arch=('x86_64')
|
||||
url="http://pypi.python.org/pypi/cssselect"
|
||||
makedepends=('python2' 'python3')
|
||||
source=("http://pypi.python.org/packages/source/c/cssselect/cssselect-${pkgver}.tar.gz")
|
||||
md5sums=('c74f45966277dc7a0f768b9b0f3522ac')
|
||||
|
||||
prepare() {
|
||||
cp -r cssselect-${pkgver} python2-cssselect-${pkgver}
|
||||
}
|
||||
|
||||
package_python3-cssselect() {
|
||||
pkgdesc="A Python3 library that parses CSS3 Selectors and translates them to XPath 1.0"
|
||||
depends=('python3')
|
||||
|
||||
cd cssselect-${pkgver}
|
||||
python3 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
|
||||
}
|
||||
|
||||
|
||||
# Fix python2 shebang
|
||||
#sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \#
|
||||
# "${pkgdir}"/usr/lib/python2.7/site-packages/cssselect/tests.py
|
@ -1,32 +0,0 @@
|
||||
#
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Martín González <koteccr at gmail dot com>
|
||||
|
||||
pkgname='python2-cssselect'
|
||||
pkgver=0.7.1
|
||||
pkgrel=1
|
||||
pkgdesc="A Python2 library that parses CSS3 Selectors and translates them to XPath 1.0"
|
||||
depends=('python2')
|
||||
license=('BSD')
|
||||
arch=('any')
|
||||
url="http://pypi.python.org/pypi/cssselect"
|
||||
makedepends=('python2')
|
||||
source=("http://pypi.python.org/packages/source/c/cssselect/cssselect-${pkgver}.tar.gz")
|
||||
md5sums=('c6c5e9a2e7ca226ce03f6f67a771379c')
|
||||
|
||||
build() {
|
||||
cp -r cssselect-${pkgver} python2-cssselect-${pkgver}
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
cd python2-cssselect-${pkgver}
|
||||
python2 setup.py install --root="${pkgdir}/" --optimize=1
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
|
||||
# Fix python2 shebang
|
||||
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
|
||||
"${pkgdir}"/usr/lib/python2.7/site-packages/cssselect/tests.py
|
||||
}
|
Loading…
Reference in New Issue
Block a user