summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4858be83e37fa33834913cd4164f502a428127d (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: max_meyer 
# Contributor: popsch
# Based on original tikzit-aur-package made by pippin

pkgname=tikzit-git
epoch=3
pkgver=2.1.6.r38.gb308232
pkgrel=1
pkgdesc="Creation and modification of TeX diagrams written using the pgf/TikZ macro library - rewrite in QT and C++"
arch=('i686' 'x86_64')
url="https://tikzit.github.io/"
license=('GPL')
depends=('hicolor-icon-theme' 'poppler-qt5')
makedepends=('git' 'poppler-qt5')
provides=('tikzit')
conflicts=('tikzit')
source=('git+https://github.com/tikzit/tikzit.git')
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  printf "%s" "$(git describe --tags | cut -c2- | sed 's+-+.r+' | tr - .)"
}
 
build() {
  cd ${pkgname%-git}
  qmake PREFIX=/usr \
    QMAKE_CFLAGS="${CFLAGS}" \
    QMAKE_CXXFLAGS="${CXXFLAGS}" tikzit.pro  
  make
}

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