summaryrefslogtreecommitdiff
path: root/pcr/python-poppler-qt4/PKGBUILD
blob: cb3b53a69f90ef299ee92e9b9d7c4336f8c0aa31 (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
# Maintainer (AUR): Johan Reitan <johan.reitan at gmail dot com>
# Contributor (AUR): Philip Lorenz <lorenzph@users.sourceforge.net>

# parabola changes and rationale:
#  no changes.

pkgname=python-poppler-qt4
_realpkgname=python-poppler-qt4
pkgver=0.25.0
pkgrel=1
pkgdesc="A Python 3 binding to poppler-qt4"
arch=('i686' 'x86_64')
url="https://github.com/wbsoft/python-poppler-qt4"
license=('LGPL')
depends=('python-pyqt4' 'poppler-qt4')
conflicts=('python-poppler-qt')
replaces=('python-poppler-qt')
source=(https://github.com/zehome/$_realpkgname/archive/v$pkgver.tar.gz)
# Fork that fixes a build issue with sip 4.19. Original repo:
#source=(https://github.com/wbsoft/$_realpkgname/archive/v$pkgver.tar.gz)
sha256sums=('2dbff1b9064419037855007eb2cbbf1e680adbc0175c1f0b74d69be4a9feb94a')

_build_ext_args="--qmake-bin=/usr/bin/qmake-qt4"

build() {
  cd "$srcdir/$_realpkgname-$pkgver"

  python setup.py build_ext ${_build_ext_args}
}

package() {
  cd "$srcdir/$_realpkgname-$pkgver"

  python setup.py install --root="${pkgdir}" \
                  build_ext ${_build_ext_args}
}

# vim:set ts=2 sw=2 et: