aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-scrapy/APKBUILD
blob: 9d4d828905205e9e8e9d70eb408033f610aa8af4 (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
32
33
34
35
36
37
38
39
40
41
# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Orion <systmkor@gmail.com>
# Used https://aur.archlinux.org/packages/sc/scrapy/PKGBUILD as template
pkgname=py-scrapy
_pkgname="Scrapy"
pkgver=0.24.4
pkgrel=1
pkgdesc="A fast high-level scraping and web crawling framework."
url="http://scrapy.org/"
arch="noarch"
license="BSD"
depends="python py-twisted libxml2 py-w3lib py-lxml py-six py-queuelib py-cssselect py-openssl py-cryptography py-cffi"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages="" #"$pkgname-dev $pkgname-doc"
source="https://files.pythonhosted.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 --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="77bbfa482dedca8daa8c61b48b3925e5  Scrapy-0.24.4.tar.gz"
sha256sums="286dfc278f575f5176892f45179b4ce25dcdc6270bbf2146a2f1ace39ba24d00  Scrapy-0.24.4.tar.gz"
sha512sums="3f1b1c54ff0924191e6f0b655c037c3baa36844dcca3a9eaa5cb5f995e479e7fc730b296b3f5146687aa034c983f86a6418561687c430712a38f8b7d8ff15b6a  Scrapy-0.24.4.tar.gz"