blob: 04966d2c9cca91ddc8bd3560dec73fb5b41d2a78 (
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
41
42
43
|
# Maintainer: Justin R. St-Amant <jstamant24 at gmail dot com>
pkgname=universal-gcode-sender-git
pkgver=1.0.8.r125.g48452ca
pkgrel=2
pkgdesc="Java based GRBL compatible cross-paltform G-Code sender"
arch=('any')
url="https://github.com/winder/Universal-G-Code-Sender"
license=('GPL3')
depends=('java-environment>=7' 'sh') # untested on java8
makedepends=('maven')
conflicts=('universal-gcode-sender')
install=universal-gcode-sender-git.install
source=(
"$pkgname::git+https://github.com/winder/Universal-G-Code-Sender.git"
"universal-gcode-sender.sh"
)
md5sums=(
'SKIP'
'c702750108e124a773dee03bc37934bb'
)
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir/$pkgname
mvn package -DskipTests
}
check() {
cd $srcdir/$pkgname
mvn test
}
package() {
cd $srcdir
install -Dm 755 universal-gcode-sender.sh -T $pkgdir/usr/bin/ugs
cd $pkgname
install -Dm 644 target/UniversalGcodeSender.jar \
-t $pkgdir/usr/share/java
}
|