summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c392355bcbd5a0cc5cb5b5deb507da658b4d216 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=qtikz-git
pkgver=r317.37ae35f
pkgrel=1
pkgdesc="Small application helping you to create TikZ diagrams"
arch=('i686' 'x86_64')
url="https://github.com/fhackenberger/ktikz"
license=('GPL')
depends=('poppler-qt5')
makedepends=('git' 'qt5-tools' 'texlive-core')
provides=('qtikz')
conflicts=('qtikz')
source=("qtikz::git+https://github.com/fhackenberger/ktikz")
md5sums=('SKIP')
options=('!makeflags')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

build() {
  cd "${pkgname%-git}"
  qmake qtikz.pro
  make
}

package() {
  cd "${pkgname%-git}"
  make INSTALL_ROOT="$pkgdir" install
}