blob: f7cb45de254273b8d3e89806794c62da915a324f (
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
39
|
# Maintainer: Janek Graff <janek.graff at gmx dot com>
# This is a modified version of xorlys' serialplot-hg package (https://aur.archlinux.org/packages/serialplot-hg)
# It changes the upstream to the git repository and uses the qwt dependency that is delivered by the build process of serialplot
pkgname=serialplot-git
_pkgname=serialplot
pkgver=v0.12.0.r24.gd130116
pkgrel=1
pkgdesc="Small and simple software for plotting data from serial port in realtime"
arch=('i686' 'x86_64')
url="https://github.com/hyOzd/serialplot"
license=('GPL3')
depends=('qt5-base' 'qt5-serialport' 'hicolor-icon-theme')
makedepends=('git' 'cmake' 'make')
provides=('serialplot')
conflicts=('serialplot-hg')
source=('git+https://github.com/hyOzd/serialplot.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
(
set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/$_pkgname"
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-DUPDATE_TYPE_PKGMAN -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$srcdir/$_pkgname"
cd build
make DESTDIR="${pkgdir}" install
}
|