aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-dpath/APKBUILD
blob: c2838841640791b03dbec15359881121ce62b857 (plain) (blame)
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
42
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-dpath
_pkgname=dpath
pkgver=1.2
_pkgsver=70
pkgrel=0._pkgver
pkgdesc="Filesystem-like pathing and searching for dictionaries"
url="https://www.github.com/akesterson/dpath-python"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver-$_pkgsver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver-$_pkgsver
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="adbcd66956eb40366ff00af2c7802d7e  dpath-1.2-70.tar.gz"
sha256sums="4fe5fd67f1d89b29a58bbd90ec02cac7b54472dbba5d6b0d22c4a96f105747d0  dpath-1.2-70.tar.gz"
sha512sums="d16619b5d9568553d1ffc72fd33498198426e4755dffdbb4e6882c3f4de21fa43f58373e422d7135faee0b99cc1762b51cc15cd0dc9cf859a810d72502449df7  dpath-1.2-70.tar.gz"