blob: 585cd416d75b171d2de3b1040bc0d23342ce80e8 (
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
44
45
46
|
# Maintainer: Grey Christoforo <first name at last name dot net>
pkgname=universal-gcode-sender-git
pkgver=1.0.9.r969.gd81bb035
pkgrel=1
pkgdesc="Java based GRBL compatible cross-platform G-Code sender"
arch=('any')
url="https://github.com/winder/Universal-G-Code-Sender"
license=('GPL3')
depends=('java-environment>=8' 'sh')
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 ugs-core/target/UniversalGcodeSender.jar \
-t $pkgdir/usr/share/java
mkdir "${pkgdir}/opt"
cp -a "${srcdir}/universal-gcode-sender-git/ugs-platform/application/target/ugsplatform" "${pkgdir}/opt/${pkgname}"
ln -s /opt/universal-gcode-sender-git/bin/ugsplatform "${pkgdir}/usr/bin/ugs2"
}
|