python-bitarray: fix pycompile_module, template cleanup

This commit is contained in:
Alessio Sergi 2016-02-20 20:02:52 +01:00
parent 5976d9de25
commit 6e7d296dd3
1 changed files with 17 additions and 18 deletions

View File

@ -1,31 +1,30 @@
# Template file for 'python-bitarray' # Template file for 'python-bitarray'
pkgname=python-bitarray pkgname=python-bitarray
version=0.8.1 version=0.8.1
revision=1 revision=2
_realname=bitarray wrksrc="bitarray-${version}"
wrksrc=$_realname-$version pycompile_module="bitarray"
pycompile_module="${_realname}.py"
python_versions="2.7 3.4" python_versions="2.7 3.4"
build_style=python-module build_style=python-module
hostmakedepends="python-devel python-setuptools hostmakedepends="python-setuptools python3.4-setuptools"
python3.4-devel python3.4-setuptools"
makedepends="python-devel python3.4-devel libcurl-devel" makedepends="python-devel python3.4-devel libcurl-devel"
short_desc="Python object type for efficiently representing arrays of booleans" short_desc="Python2 module for efficiently representing arrays of booleans"
maintainer="Toyam Cox <Vaelatern@gmail.com>" maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="Python Software Foundation" license="PSF-2"
homepage="https://github.com/ilanschnell/bitarray" homepage="https://github.com/ilanschnell/bitarray"
distfiles="https://github.com/ilanschnell/${_realname}/archive/${version}.tar.gz" distfiles="https://github.com/ilanschnell/bitarray/archive/${version}.tar.gz"
checksum=428212974285eacf9f3b4a6fb60f365d727ab6e30b98de4eb2f238a7b0dd4b50 checksum=428212974285eacf9f3b4a6fb60f365d727ab6e30b98de4eb2f238a7b0dd4b50
python3.4-bitarray_package() {
short_desc="${short_desc/Python/Python3.4}"
pycompile_version="3.4"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/python3.4
}
}
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }
python3.4-bitarray_package() {
pycompile_version="3.4"
pycompile_module="bitarray"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}