forked from fledge-iot/fledge-south-dht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage
30 lines (28 loc) · 734 Bytes
/
Package
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
# A set of variables that define how we package this repository
#
plugin_name=dht11_V2
plugin_type=south
plugin_install_dirname=${plugin_name}
plugin_package_name=fledge-${plugin_type}-dht11V2
# Now build up the runtime requirements list. This has 3 components
# 1. Generic packages we depend on in all architectures and package managers
# 2. Architecture specific packages we depend on
# 3. Package manager specific packages we depend on
requirements="fledge"
case "$arch" in
x86_64)
echo "${plugin_name} is not supported on Intel architectures as it requires ARM GPIO support"
exit 1
;;
armv7l)
requirements="${requirements},wiringpi"
;;
aarch64)
;;
esac
case "$package_manager" in
deb)
;;
rpm)
;;
esac