aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-vobject/APKBUILD
blob: f56f64b89bc8a75f01041dd02893b890a9ddb525 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-vobject
pkgver=0.9.6.1
pkgrel=2
pkgdesc="Module for parsing and generating vCard and vCalendar files"
url="http://eventable.github.io/vobject/"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-dateutil"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/eventable/vobject/archive/$pkgver.tar.gz"
builddir="$srcdir"/vobject-$pkgver

replaces="py-vobject" # Backwards compatibility
provides="py-vobject=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	cd "$builddir"
	python3 tests.py
}

sha512sums="499f22a1a9e60398a89d3d6fa472a0b4c9dd00b98440a4ce873da824f83cef1b0a5eb9e5051267931707a3eef00a1d3fb83ff63ffe857b403c4ac3a131f18dff  py3-vobject-0.9.6.1.tar.gz"