summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f6e74ff3e7965d3f8d5284bc374810f5969b566 (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
# Maintainer: Russell Greene <russellgreene8 at gmail dot com>

pkgname=chigraph-gui-git
pkgver=02decd6f2bf7286bfd95ff779aa97b1535ccf016
pkgrel=2
arch=('i686' 'x86_64')

conflicts=("chigraph-gui")

pkgdesc="The GUI for chigraph, a visual programming language"
url='https://github.com/chigraph/chigraph'

depends=('chigraph-git' 'kxmlgui' 'ktexteditor')
makedepends=('cmake' 'git' 'extra-cmake-modules')

source=("chigraph-gui::git+https://github.com/chigraph/chigraph-gui")
md5sums=('SKIP')

pkgver() {
	cd chigraph-gui
	git rev-parse HEAD
}

prepare() {
	mkdir -p build
	cd chigraph-gui
	git submodule update --init --recursive
}

build() {
	cd build
	cmake ../chigraph-gui -DCMAKE_BUILD_TYPE=Release -DCG_USE_SYSTEM_CHIGRAPH=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
	make -j`nproc`
}

package() {
	make -C build DESTDIR="${pkgdir}" install
}