Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
RPM packaging restricted for sensehat
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-jabble committed May 14, 2019
1 parent e783fa9 commit 9e13106
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions Description
@@ -0,0 +1 @@
FogLAMP South Sense HAT plugin for Raspberry PI
32 changes: 32 additions & 0 deletions Package
@@ -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

0 comments on commit 9e13106

Please sign in to comment.