python-pdfrw: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 20:58:13 +07:00
parent 37e72022ee
commit 256f54ab8a
3 changed files with 21 additions and 38 deletions

View file

@ -1,37 +0,0 @@
# Template file for 'python-pdfrw'
pkgname=python-pdfrw
version=0.4
revision=3
archs=noarch
replaces="python-pdfrw-example<${version}_${revision}"
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="pdfrw"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Pure Python2 library that reads and writes PDFs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, BSD-3-Clause"
homepage="https://github.com/pmaupin/pdfrw"
distfiles="${PYPI_SITE}/p/pdfrw/pdfrw-${version}.tar.gz"
checksum=0dc0494a0e6561b268542b28ede2280387c2728114f117d3bb5d8e4787b93ef4
post_install() {
vlicense LICENSE.txt
vmkdir usr/share/examples/${pkgname}
vcopy examples/* usr/share/examples/${pkgname}
}
python3-pdfrw_package() {
replaces="python-pdfrw-example<${version}_${revision}"
archs=noarch
pycompile_module="pdfrw"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vmkdir usr/share/examples/${pkgname}
vcopy examples/* usr/share/examples/${pkgname}
vlicense LICENSE.txt
}
}

View file

@ -1 +0,0 @@
python-pdfrw

View file

@ -0,0 +1,21 @@
# Template file for 'python3-pdfrw'
pkgname=python3-pdfrw
version=0.4
revision=4
wrksrc="pdfrw-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Pure Python3 library that reads and writes PDFs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, BSD-3-Clause"
homepage="https://github.com/pmaupin/pdfrw"
distfiles="${PYPI_SITE}/p/pdfrw/pdfrw-${version}.tar.gz"
checksum=0dc0494a0e6561b268542b28ede2280387c2728114f117d3bb5d8e4787b93ef4
replaces="python-pdfrw-example>=0"
post_install() {
vlicense LICENSE.txt
vmkdir usr/share/examples/${pkgname}
vcopy examples/* usr/share/examples/${pkgname}
}