blob: 863f2eb8cbf9d3bd794b2db8caa95388c054a8c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
_name=urlgrabber
pkgname=python-urlgrabber
pkgver=4.1.0
pkgrel=1
pkgdesc="A high-level cross-protocol url-grabber"
arch=('any')
url="https://github.com/rpm-software-management/urlgrabber"
license=('LGPL')
depends=('python')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/u/urlgrabber/urlgrabber-${pkgver}.tar.gz")
sha512sums=('0e45491a2cd575978eea8a0a70a312d838b729391ae19363d3edc0073a0694f1648726e7e710d7928aaef5abc2141b8f45c5a0af931f3892fb208f5ccbe1a696')
build() {
cd "urlgrabber-$pkgver"
python setup.py build
}
check() {
cd "urlgrabber-$pkgver"
python setup.py test
}
package() {
cd "urlgrabber-$pkgver"
python setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
--root="${pkgdir}"
}
|