void-packages/srcpkgs/python-snakeoil/template
Toyam Cox e262afc5cf python-snakeoil: update to 0.7.4.
Closes: #7981 [via git-merge-pr]
2017-10-09 04:02:03 +02:00

55 lines
1.7 KiB
Bash

# Template file for 'python-snakeoil'
pkgname=python-snakeoil
version=0.7.4
revision=1
wrksrc="snakeoil-${version}"
build_style=python-module
pycompile_module="snakeoil"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Python2 optimized versions of common python functionality"
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
license="BSD, GPL-2"
homepage="https://github.com/pkgcore/snakeoil"
# changelog="https://github.com/pkgcore/snakeoil/blob/master/NEWS.rst"
distfiles="${PYPI_SITE}/s/snakeoil/snakeoil-${version}.tar.gz"
checksum=67280c86e4b02c34100603d7525270c0017e0d182df54ad31ec2e5c145e69ceb
post_install() {
vlicense BSD
}
python-snakeoil-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/python2.7
}
}
python3-snakeoil_package() {
replaces="python3.4-snakeoil>=0"
pycompile_module="snakeoil"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense BSD
}
}
python3-snakeoil-devel_package() {
replaces="python3.4-snakeoil-devel>=0"
depends="python3-snakeoil>=${version}_${revision}"
short_desc="${short_desc/Python2/Python3} - development files"
pkg_install() {
vmove usr/include/python3*
}
}
python3.4-snakeoil_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-snakeoil>=${version}_${revision}"
}
python3.4-snakeoil-devel_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} - development files (transitional dummy package)"
depends="python3-snakeoil-devel>=${version}_${revision}"
}