aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-vobject/APKBUILD
blob: 8544d7b21630b4e3074674327527e4a54e36bc19 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-vobject
pkgver=0.9.6.1
pkgrel=3
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"