summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a11e4634a4f4ee429af07128f45c95404068d40 (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: Torsten Hilgenberg <th@zoon.cc>

pkgname=cplot
pkgver=2.0
pkgrel=1
pkgdesc='Function plotter for real and complex mathematical functions'
url='https://zoon.cc/cplot/'
license=('MIT')
arch=('x86_64')

depends=('zlib' 'sdl2' 'libgl' 'glu' 'glew' 'glibc' 'pango' 'cairo')
makedepends=('git' 'python>=3.0.0' 'ninja' 'boost')
source=('git+https://github.com/hilgenberg/cplot#commit=a8b8f5f6ad42698c36cc55710a616c304aa56bb5')
sha256sums=('SKIP')

prepare() {
	cd "$srcdir/cplot/"
	git submodule update --init --recursive --depth 1
}

build() {
	cd "$srcdir/cplot/"
	./build release
}

package() {
	cd "$srcdir/cplot/"
	install -Dm755 -t "$pkgdir/usr/bin/" build_release/cplot
	install -Dm644 -t "$pkgdir/usr/share/cplot/" Plot\ Examples/*.cplot
	install -Dm644 -t "$pkgdir/usr/share/licenses/cplot/" LICENSE
}