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

pkgname=chigraph-git
pkgver=244c0d0a512158d6f126713fc0ca0e2a3b532989
pkgrel=2
arch=('i686' 'x86_64')

pkgdesc="A visual programming language"
url='https://github.com/chigraph/chigraph'

conflicts=("chigraph")

depends=('libgit2' 'llvm-libs' 'lldb' 'boost-libs')
makedepends=('cmake' 'boost' 'llvm' 'clang')

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

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

prepare() {
	mkdir -p build
}

build() {
	cd build
	cmake ../chigraph -DCMAKE_BUILD_TYPE=Release -DCG_USE_SYSTEM_LIBGIT2=ON -DCG_USE_SYSTEM_BOOST=ON -DCG_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr
	make -j`nproc`
}

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