aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-scrapy-dblite/APKBUILD
blob: 479108a9082a06cf766422d588c0f477f846ed10 (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:
# Maintainer:
pkgname=py-scrapy-dblite
_pkgname=scrapy-dblite
pkgver=0.2.5
pkgrel=0
pkgdesc="Simple library for storing Scrapy Items in sqlite." # quote from github
url="https://github.com/ownport/scrapy-dblite"
arch="noarch"
license="BSD" # 2 clause license http://opensource.org/licenses/BSD-2-Clause
depends="python"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
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="f3e5ccca05895c52df9fc8408a6230e7  scrapy-dblite-0.2.5.tar.gz"
sha256sums="9d42ea9a585e3e7b345529d5a311dd3920c4d6f99654f3ce9c0c14c359e7185b  scrapy-dblite-0.2.5.tar.gz"
sha512sums="292eab45a191b28d339c6581e5faf06af27f6c47596262c08f79b7da9f5c6880ea8c32c3b011fa509c850524b49be4edcf5b79c9d43fdb7b354bd32fd3f81141  scrapy-dblite-0.2.5.tar.gz"