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

pkgname=tikzit
pkgver=2.1.4
pkgrel=2
pkgdesc="Allows the creation and modification of TeX diagrams written using the pgf/TikZ macro library"
arch=('i686' 'x86_64')
url="https://tikzit.github.io/"
license=('GPL2')
depends=('qt5-base')
makedepends=('poppler-qt5')
optdepends=('texlive-core: previews')
source=("$pkgname-$pkgver.tar.gz::https://github.com/tikzit/tikzit/archive/v$pkgver.tar.gz")
sha256sums=('14443ab430ff20e5c3b185a704932858afb3d776aa9b3a54e1b9898d5b9c13a8')

build() {
  cd $pkgname-$pkgver
  qmake PREFIX=/usr \
    QMAKE_CFLAGS="${CFLAGS}" \
    QMAKE_CXXFLAGS="${CXXFLAGS}" tikzit.pro  
  make -j1
  make
}

package() {
  cd $pkgname-$pkgver
  install -Dm755 tikzit "$pkgdir"/usr/bin/tikzit
}