summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e4063a7d2bd7d1a2a5519dc93411389649b7a47 (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
# Maintainer: Martin Mancuska <martin@borg.sk>

_pkgname=qpdfwalker
pkgname=qpdfwalker-git
pkgver=dev1
pkgrel=1
pkgdesc="Tool for browsing hierarchy of low level objects in a PDF file."
arch=('i686' 'x86_64')
url="https://github.com/mato7d5/$_pkgname"
license=('GPL3')
depends=('poppler' 'qt5-base')
makedepends=('git')
source=("git+https://github.com/mato7d5/$_pkgname.git")
sha256sums=("SKIP")

pkgver() {
    cd ${srcdir}/${_pkgname}
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir/$_pkgname"
  qmake-qt5 qpdfwalker.pro
  make
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 qpdfwalker "${pkgdir}/usr/local/bin/qpdfwalker"
}