blob: e1e696a0300df6978ebd700140e900439c02eedb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Berrit Birkner <aur at bbirkner.de>
# Contributor: Raphaƫl Doursenaud <rdoursenaud@free.fr>
pkgname=qpageview-git
pkgver=0.6.2.r8.gc308c2d
pkgrel=2
pkgdesc="A page based document viewer widget for Qt5/PyQt5."
arch=('any')
url="https://github.com/frescobaldi/qpageview"
license=('GPL')
makedepends=(
'git'
'python-build'
'python-wheel'
'python-installer'
'python-hatchling'
)
depends=(
'python>=3.6'
'python-pyqt5'
'qt5-base'
)
optdepends=(
'python-poppler-qt5: Display PDF documents'
'python-pycups: Printing to a local CUPS server'
)
provides=("${pkgname%-git}=$pkgver-$pkgrel" "python-qpageview")
conflicts=("${pkgname%-git}" "ly" "python-qpageview")
options=(!emptydirs)
source=("$pkgname"::'git+https://github.com/frescobaldi/qpageview.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build () {
cd "$srcdir/$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|