This repository has been archived by the owner on Jan 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from foglamp/FOGL-2816_envirophat
FOGL-2816 RPM packaging restricted for envirophat
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FogLAMP South EnviroPHAT plugin for Raspberry PI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# A set of variables that define how we package this repository | ||
# | ||
plugin_name=envirophat | ||
plugin_type=south | ||
plugin_install_dirname=${plugin_name} | ||
|
||
# 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="foglamp,python3-envirophat" | ||
|
||
case "$arch" in | ||
x86_64) | ||
;; | ||
armhf) | ||
;; | ||
aarch64) | ||
;; | ||
esac | ||
case "$package_manager" in | ||
deb) | ||
if [ "$arch" != "armhf" ]; then | ||
echo "Deb Package building for ${plugin_name} is only supported on armhf architecture!!" | ||
exit 0 | ||
fi | ||
;; | ||
rpm) | ||
echo "RPM Package building for ${plugin_name} is not supported on $arch architecture!!" | ||
exit 0 | ||
;; | ||
esac |