void-packages/srcpkgs/python-pdfrw/template
Lugubris d78cb0d201 Drop maintainership of orphaned packages
some packages were dropped but their maintainer= was not updated in template.
this will help new maintainers adopt these packages.

-> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
2019-08-25 21:16:43 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'python-pdfrw'
pkgname=python-pdfrw
version=0.4
revision=2
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
}
}