mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-29 02:11:16 +02:00
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# Contributor: Francesco Colista <francesco.colista@gmail.com>
|
|
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
|
|
pkgname=py-cssselect
|
|
_pkgname=cssselect
|
|
pkgver=0.9.1
|
|
pkgrel=0
|
|
pkgdesc="A Python library that parses CSS3 Selectors and translates them to XPath 1.0"
|
|
url="http://pypi.python.org/pypi/cssselect"
|
|
arch="noarch"
|
|
license="BSD"
|
|
depends=""
|
|
depends_dev="python-dev"
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages=""
|
|
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$_pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
python setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --root="${pkgdir}/" --optimize=1
|
|
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|
|
md5sums="c74f45966277dc7a0f768b9b0f3522ac cssselect-0.9.1.tar.gz"
|
|
sha256sums="0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682 cssselect-0.9.1.tar.gz"
|
|
sha512sums="c4cd2c8d6fbfa99b836554685dd59e1e794e1fab06fcf4419a226b0608a05d58be5af54e507003f2a233a22f03d59d3d63c0bf19b3314f15c95ab3ce5f4db6cc cssselect-0.9.1.tar.gz"
|