summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ee0b01be3cca862c5ccf815d1940f19ff1508ed (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
# Maintainer: Philipp A. <flying-sheep@web.de>
# Contributor: Vladimir Keleshev <vladimir [at] keleshev [dot] com>

_name=schema
pkgbase="python-$_name"
pkgname=("python2-$_name" "python-$_name")
pkgver=0.6.8
pkgrel=2
pkgdesc='Python module to validate and convert data structures.'
arch=(any)
url="https://github.com/keleshev/$_name"
license=(MIT)
makedepends=(python-pip python2-pip)
_wheel="$_name-$pkgver-py2.py3-none-any.whl"
source=("https://files.pythonhosted.org/packages/py2.py3/${_name::1}/$_name/$_wheel")
sha256sums=('d994b0dc4966000037b26898df638e3e2a694cc73636cb2050e652614a350687')
noextract=("$_wheel")

do_package() {
	depends=($1)
	$2 install --compile --no-deps --ignore-installed --root="$pkgdir" "$_wheel"
}

package_python2-schema() {
	do_package python2 pip2
}

package_python-schema() {
	do_package python pip
}