python-zipstream: fix template
- build both Python 2 and 3 modules correctly :/ - add missing noarch=yes, pycompile_module and depends
This commit is contained in:
parent
951ca91fe0
commit
98977222a9
|
@ -0,0 +1,26 @@
|
|||
# Template file for 'python-zipstream'
|
||||
pkgname=python-zipstream
|
||||
version=1.1.4
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="python-zipstream-${version}"
|
||||
build_style=python-module
|
||||
pycompile_module="zipstream"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python"
|
||||
short_desc="Python2 ZIP archive generator"
|
||||
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
|
||||
license="GPL-3"
|
||||
homepage="https://github.com/allanlei/python-zipstream"
|
||||
distfiles="https://github.com/allanlei/python-zipstream/archive/v${version}.tar.gz"
|
||||
checksum=32a7a4bdb786914445589595273beffbbf9b6a0a3a3dc2cf19ea96114bd2abd7
|
||||
|
||||
python3-zipstream_package() {
|
||||
noarch=yes
|
||||
depends="python3"
|
||||
pycompile_module="zipstream"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
python-zipstream
|
|
@ -1,13 +0,0 @@
|
|||
# Template file for 'python3-zipstream'
|
||||
pkgname=python3-zipstream
|
||||
version=1.1.4
|
||||
revision=1
|
||||
wrksrc=python-zipstream-${version}
|
||||
build_style=python3-module
|
||||
hostmakedepends="python python3 python-setuptools python3-setuptools"
|
||||
short_desc="Python's ZipFile module, except it works as a generator"
|
||||
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
|
||||
license="GPL-3"
|
||||
homepage="https://github.com/allanlei/python-zipstream"
|
||||
distfiles="https://github.com/allanlei/python-zipstream/archive/v${version}.tar.gz"
|
||||
checksum=32a7a4bdb786914445589595273beffbbf9b6a0a3a3dc2cf19ea96114bd2abd7
|
Loading…
Reference in New Issue