-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathlibirimager.rdmanifest
More file actions
43 lines (40 loc) · 991 Bytes
/
libirimager.rdmanifest
File metadata and controls
43 lines (40 loc) · 991 Bytes
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
uri: "http://ftp.evocortex.com/libirimager_empty.tar"
md5sum: 53dd389ba484a8d67dd625a5ad0e3703
install-script: |
#!/bin/bash
arch="$(uname -m)"
if [ "$arch" == "atom" ]; then
pkgarch="atom"
elif [ "$arch" == "armhf" ]; then
pkgarch="armhf"
elif [ "$arch" == "armel" ]; then
pkgarch="armel"
elif [ "$arch" == "arm64" ]; then
pkgarch="arm64"
elif [ "$arch" == "x86_64" ]; then
pkgarch="amd64"
else
pkgarch="i386"
fi
url="http://ftp.evocortex.com/libirimager-latest?arch=$pkgarch&type=deb"
pkg="libirimager-latest_$pkgarch.deb"
wget --no-check-certificate -O $pkg $url
sudo dpkg -i $pkg
check-presence-script: |
#!/bin/bash
dpkg-query -s libirimager > /dev/null 2>&1
case $? in
0)
echo "libirimager is installed"
exit 0
;;
1)
echo "libirimager is not installed"
exit 1
;;
2)
echo "An error occurred while querying for libirimager"
exit 1
;;
esac
depends: [wget, libudev-dev, libusb-1.0-dev]