summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c96535f68fd4a7bc2015753fa17e5794fe1a7c3 (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: Christopher Bero <bigbero@gmail.com>
pkgname=localplot-git
_pkgname=localplot
pkgver=191.a385ea9
pkgrel=3
pkgdesc="HPGL Plotting software to drive a serial vinyl cutter."
arch=('i686' 'x86_64')
url="https://github.com/makerslocal/localplot"
license=('GPL3')
#group=('')
depends=('qt5-serialport')
makedepends=('git' 'qt5-base' 'qt5-tools' 'qt5-svg')
optdepends=('inkscape: support importing svg and dxf files')
#noextract=('')
source=(${_pkgname}::"git+https://github.com/makerslocal/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

#prepare() {
#}

build() {
	cd "${srcdir}/${_pkgname}"
	git submodule init
	git submodule update
	qmake -spec linux-g++ CONFIG+=release -o Makefile localplot.pro
	make
}

package() {
    install -D "$srcdir/localplot/localplot" "$pkgdir/usr/bin/localplot"
    install -D "$srcdir/localplot/localplot.desktop" "$pkgdir/usr/share/applications/localplot.desktop"
}