New package: python-pdfrw-0.4.
This commit is contained in:
parent
e53dd61dec
commit
7f45925a02
3 changed files with 44 additions and 0 deletions
1
srcpkgs/python-pdfrw-example
Symbolic link
1
srcpkgs/python-pdfrw-example
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-pdfrw
|
42
srcpkgs/python-pdfrw/template
Normal file
42
srcpkgs/python-pdfrw/template
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Template file for 'python-pdfrw'
|
||||||
|
pkgname=python-pdfrw
|
||||||
|
version=0.4
|
||||||
|
revision=1
|
||||||
|
wrksrc="${pkgname/python-//}-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
pycompile_module="pdfrw"
|
||||||
|
noarch=yes
|
||||||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
depends="python"
|
||||||
|
short_desc="Pdfrw is a pure Python2 library that reads and writes PDFs"
|
||||||
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
|
license="MIT, BSD"
|
||||||
|
homepage="https://github.com/pmaupin/pdfrw"
|
||||||
|
distfiles="${PYPI_SITE}/p/pdfrw/pdfrw-${version}.tar.gz"
|
||||||
|
checksum=0dc0494a0e6561b268542b28ede2280387c2728114f117d3bb5d8e4787b93ef4
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-pdfrw_package() {
|
||||||
|
noarch=yes
|
||||||
|
pycompile_module="pdfrw"
|
||||||
|
depends="python3"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3*
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
1
srcpkgs/python3-pdfrw
Symbolic link
1
srcpkgs/python3-pdfrw
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-pdfrw
|
Loading…
Reference in a new issue