Skip to content

Commit

Permalink
Initial version 3.1.0
Browse files Browse the repository at this point in the history
See py-pdf/pypdf#1488

Legacy package python-pypdf2 has been downgraded to last legacy 2.12.1
version.
  • Loading branch information
bulletmark committed Dec 24, 2022
0 parents commit a7e7b3b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pkgbase = python-pypdf
pkgdesc = Python library for manipulating pages of PDF files (v3+)
pkgver = 3.1.0
pkgrel = 1
url = https://github.com/py-pdf/pypdf
arch = any
license = BSD
makedepends = python-setuptools
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
makedepends = python-flit-core
depends = python
conflicts = python-pypdf2<1:2.12.1
source = python-pypdf-3.1.0.tar.gz::https://github.com/py-pdf/pypdf/archive/3.1.0.tar.gz
sha256sums = 9c34f31b6a54076b779245f48ce25622a9b70f739c667e5e7bd1e19f207949e7

pkgname = python-pypdf
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pkg/
src/
*.tar
*.tar.*
*.[gx]z
29 changes: 29 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Maintainer: mark.blakeney at bullet-systems dot net
# Contributor: Yuanji <self@gimo.me>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Francois Boulogne <fboulogne at april dot org>

_name=pypdf
pkgname=python-$_name
pkgver=3.1.0
pkgrel=1
pkgdesc='Python library for manipulating pages of PDF files (v3+)'
arch=(any)
url="https://github.com/py-pdf/$_name"
license=(BSD)
depends=(python)
conflicts=("python-pypdf2<1:2.12.1")
makedepends=(python-setuptools python-build python-installer python-wheel python-flit-core)
source=($pkgname-$pkgver.tar.gz::"$url/archive/$pkgver.tar.gz")
sha256sums=('9c34f31b6a54076b779245f48ce25622a9b70f739c667e5e7bd1e19f207949e7')

build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}

package(){
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

0 comments on commit a7e7b3b

Please sign in to comment.