blob: a4c9dec19f8b3b6ba420dae271be6104854f66c8 (
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
40
|
# Maintainer: Branimir Ricko <rickobranimir at gmail dot com>
pkgname=brplot-git
_pkgver=0.0.13
pkgver=v0.0.13.r0.gc3ed1fc
pkgrel=1
pkgdesc='Better real time plot - plotting lines that are sent to stdin'
url="https://github.com/branc116/brplot"
arch=('x86_64')
license=('MIT')
depends=('glibc')
optdepends=()
makedepends=('gcc' 'git')
provides=('brplot')
options=()
source=("git+https://github.com/branc116/brplot.git#tag=v${_pkgver}")
sha256sums=('SKIP') # from VCS you don't need checksums
pkgver() { # Correct handling of VCS packages versions
cd brplot
git describe --tags --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd brplot
gcc -O2 -I. -o nob nob.c -lm
}
check() {
cd brplot
./nob unittests || (echo "" && echo "" && echo "Unittests failed!" && echo "Please Report everything below this to `${url}`" && echo "" && echo "" && ./nob -ap unittests && exit 1)
}
package() {
cd brplot
./nob install --prefix ${pkgdir}/usr
mv ${pkgdir}/usr/share/licenses/brplot ${pkgdir}/usr/share/licenses/brplot-git
}
|