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

pkgname=qtikz-git
pkgver=r222.65ebb81
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-qt4')
makedepends=('git' 'texlive-core')
provides=('qtikz')
conflicts=('qtikz')
source=("qtikz::git+https://github.com/fhackenberger/ktikz" config.diff)
md5sums=('SKIP'
         'b502697a2a75a7bcdda2979e0541d2f4')
_gitname=qtikz
options=('!makeflags')

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

prepare() {
  cd "$_gitname"/qmake
  patch -p2 < "$srcdir"/config.diff
}

build() {
  cd "$_gitname"
  qmake-qt4 qtikz.pro
  make
}

package() {
  cd "$_gitname"
  make INSTALL_ROOT="$pkgdir" install
}