Permalink
Browse files

added some first version of a quick'n'dirty snappy package

  • Loading branch information...
1 parent 9fc3535 commit 95622c40ad93dc1db6d13cb37b31e137215c714e @mzanetti mzanetti committed Jun 29, 2015
Showing with 47 additions and 0 deletions.
  1. +21 −0 guh.pro
  2. +3 −0 meta/create_snap.sh
  3. +4 −0 meta/guhd-wrapper.sh
  4. +16 −0 meta/package.yaml
  5. +3 −0 meta/readme.md
View
@@ -33,3 +33,24 @@ contains(DEFINES, GPIO433){
} else {
message("Radio 433 for GPIO's disabled")
}
+
+ubuntu {
+ message("Building Ubuntu snappy package.")
+ meta.files = meta/package.yaml \
+ meta/readme.md
+ meta.path = /meta/
+
+ wrapper.files = meta/guhd-wrapper.sh
+ wrapper.path = /usr/bin/
+
+ # We need to bring our own Qt libs, at least for now
+ qtlibs.files=/usr/lib/arm-linux-gnueabihf/libQt5Network.so.5 \
+ /usr/lib/arm-linux-gnueabihf/libQt5Sql.so.5 \
+ /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5 \
+ /usr/lib/arm-linux-gnueabihf/libicui18n.so.52 \
+ /usr/lib/arm-linux-gnueabihf/libicuuc.so.52 \
+ /usr/lib/arm-linux-gnueabihf/libicudata.so.52
+ qtlibs.path=/usr/lib/
+
+ INSTALLS += meta wrapper qtlibs
+}
View
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+export LD_LIBRARY_PATH=$SNAPP_APP_PATH/usr/lib:$LD_LIBRARY_PATH
+$SNAPP_APP_PATH/usr/bin/guhd -n
View
@@ -0,0 +1,16 @@
+name: guh
+version: 0.1.0
+architecture: [armhf]
+services:
+ - name: guhd
+ start: usr/bin/guhd-wrapper.sh
+ description: "guhd - gear up your home daemon"
+ security-template: unconfined
+ caps:
+ - networking
+ - network-service
+binaries:
+ - name: guh-webserver
+ start: usr/bin/guh-webserver
+ - name: guh-cli
+ exec: usr/bin/guh-cli
View
@@ -0,0 +1,3 @@
+guh - gear up your home!
+
+TODO: Some readme stuff

0 comments on commit 95622c4

Please sign in to comment.