mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-09 05:23:02 +02:00
python-pdfrw: drop -example subpkg
This commit is contained in:
parent
1941bb4b6e
commit
2276f2be62
2 changed files with 10 additions and 16 deletions
|
@ -1 +0,0 @@
|
||||||
python-pdfrw
|
|
|
@ -1,42 +1,37 @@
|
||||||
# Template file for 'python-pdfrw'
|
# Template file for 'python-pdfrw'
|
||||||
pkgname=python-pdfrw
|
pkgname=python-pdfrw
|
||||||
version=0.4
|
version=0.4
|
||||||
revision=1
|
revision=2
|
||||||
|
noarch=yes
|
||||||
|
replaces="python-pdfrw-example<${version}_${revision}"
|
||||||
wrksrc="${pkgname/python-//}-${version}"
|
wrksrc="${pkgname/python-//}-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module="pdfrw"
|
pycompile_module="pdfrw"
|
||||||
noarch=yes
|
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python"
|
depends="python"
|
||||||
short_desc="Pdfrw is a pure Python2 library that reads and writes PDFs"
|
short_desc="Pure Python2 library that reads and writes PDFs"
|
||||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
license="MIT, BSD"
|
license="MIT, BSD-3-Clause"
|
||||||
homepage="https://github.com/pmaupin/pdfrw"
|
homepage="https://github.com/pmaupin/pdfrw"
|
||||||
distfiles="${PYPI_SITE}/p/pdfrw/pdfrw-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pdfrw/pdfrw-${version}.tar.gz"
|
||||||
checksum=0dc0494a0e6561b268542b28ede2280387c2728114f117d3bb5d8e4787b93ef4
|
checksum=0dc0494a0e6561b268542b28ede2280387c2728114f117d3bb5d8e4787b93ef4
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE.txt
|
vlicense LICENSE.txt
|
||||||
|
vmkdir usr/share/examples/${pkgname}
|
||||||
|
vcopy examples/* usr/share/examples/${pkgname}
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-pdfrw_package() {
|
python3-pdfrw_package() {
|
||||||
|
replaces="python-pdfrw-example<${version}_${revision}"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_module="pdfrw"
|
pycompile_module="pdfrw"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
|
vmkdir usr/share/examples/${pkgname}
|
||||||
|
vcopy examples/* usr/share/examples/${pkgname}
|
||||||
vlicense LICENSE.txt
|
vlicense LICENSE.txt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
python-pdfrw-example_package() {
|
|
||||||
noarch=yes
|
|
||||||
short_desc+=" - example scripts"
|
|
||||||
pkg_install() {
|
|
||||||
vmkdir usr/share/"${pkgname}"/example
|
|
||||||
vcopy "${wrksrc}/examples/*" usr/share/"${pkgname}"/example
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue