blob: 4927eee7093116a77532ebd74ea774f167fe1f57 (
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
47
|
# Maintainer: Henry Fiantaca <hfiantaca@gmail.com>
pkgname=grip-wpirobotics-bin
pkgver=1.5.2
pkgrel=1
pkgdesc="GRIP Computer Vision Engine, generates C++ and java code for opencv use in FRC robots"
arch=(x86_64)
url="http://wpiroboticsprojects.github.io/GRIP/#/"
license=('custom')
depends=(java-runtime)
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/WPIRoboticsProjects/GRIP/releases/download/v1.5.2/grip-1.5.2-x64.deb"
"https://raw.githubusercontent.com/WPIRoboticsProjects/GRIP/master/LICENSE.txt")
sha256sums=("3bacd7ee72b4fa0c0bbb613e3823d362a880f0d9d8132c136cdac57a6b49ee6c"
"ca4fbc73b15a3754fe97794157f7c2da90dc7df67f4e1989cf0bf6ded9e2f4ef")
prepare() {
mkdir -p "$srcdir"/grip_root
cd "$srcdir"/grip_root
tar -xf ../data.tar.xz
}
package() {
cd "$pkgdir"
cp -r "$srcdir"/grip_root/* .
mkdir -p usr/share/applications usr/bin usr/share/license/grip-wpirobotics-bin
cp "$srcdir"/LICENSE.txt usr/share/license/grip-wpirobotics-bin/LICENSE
ln -s /opt/GRIP/GRIP usr/bin/GRIP
cat >> usr/share/applications/GRIP.desktop << EOF
[Desktop Entry]
Name=GRIP
Comment=GRIP
Exec=/opt/GRIP/GRIP
Icon=/opt/GRIP/GRIP.png
Terminal=false
Type=Application
Categories=Development;
EOF
}
|