summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d4fd4501f700dca413f6f5fcaa6921fed24182d (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=1
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')
#optdepends=('')
#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"
}