This repository has been archived by the owner on Jan 17, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPM packaging restricted for sensehat
- Loading branch information
1 parent
e783fa9
commit 9e13106
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 Sense HAT 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=sensehat | ||
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,sense-hat" | ||
|
||
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 |