42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-vobject'
|
|
pkgname=python-vobject
|
|
version=0.9.4.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="vobject-${version}"
|
|
build_style=python-module
|
|
pycompile_module="vobject"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-dateutil python-six"
|
|
short_desc="Python2 package for parsing and creating iCalendar and vCard files"
|
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
|
license="Apache-2.0"
|
|
homepage="https://eventable.github.io/vobject"
|
|
distfiles="${PYPI_SITE}/v/vobject/vobject-${version}.tar.gz"
|
|
checksum=faea7d4fb3e2bc8ef6367e7f9b4ad0841aa1980fd5dd96d05c7a90e39880811c
|
|
|
|
alternatives="
|
|
vobject:change_tz:/usr/bin/change_tz2
|
|
vobject:ics_diff:/usr/bin/ics_diff2"
|
|
|
|
python3-vobject_package() {
|
|
noarch=yes
|
|
pycompile_module="vobject"
|
|
replaces="python3.4-vobject>=0"
|
|
depends="python3-setuptools python3-dateutil python3-six"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="
|
|
vobject:change_tz:/usr/bin/change_tz3
|
|
vobject:ics_diff:/usr/bin/ics_diff3"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-vobject_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-vobject>=${version}_${revision}"
|
|
}
|