Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lsellens committed Dec 26, 2015
0 parents commit cf05a8b
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build*
build*/*
target
target/*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
script.module.RPi.GPIO
===============================

This module contains the RPi python GPIO Lib
33 changes: 33 additions & 0 deletions create_addon
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh

. packages/meta

echo "Building $PKG_NAME-$PKG_VERSION.$PKG_REV"

rm -rf target/$PKG_VERSION.$PKG_REV/

rm -rf build
mkdir build

cp -rf $PKG_NAME build/$PKG_NAME

rm -f build/$PKG_NAME/*/.gitignore

for i in $PKG_DEPENDS;do
mkpkg/mkpkg_$i
if [ "$?" = "1" ]; then
echo "Error building $1";exit 1
fi
done

mkdir -p target/$PKG_VERSION.$PKG_REV/
cd build
zip -rq9 ../target/$PKG_VERSION.$PKG_REV/$PKG_NAME-$PKG_VERSION.$PKG_REV.zip $PKG_NAME
if [ "$?" = "0" ]; then
echo "$PKG_NAME/target/$PKG_NAME-$PKG_VERSION.$PKG_REV.zip"
fi
cp $PKG_NAME/changelog.txt ../target/$PKG_VERSION.$PKG_REV/changelog-$PKG_VERSION.$PKG_REV.txt
cp $PKG_NAME/addon.xml ../target/$PKG_VERSION.$PKG_REV/addon.xml
cd ..
rm -rf build
exit 0
4 changes: 4 additions & 0 deletions packages/meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PKG_NAME="script.module.RPi.GPIO"
PKG_VERSION="0.0"
PKG_REV="1"
PKG_DEPENDS=""
17 changes: 17 additions & 0 deletions script.module.RPi.GPIO/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.RPi.GPIO"
name="RPi.GPIO"
version="0.0.1"
provider-name="lsellens">
<requires>
<import addon="xbmc.addon" version="14.0.0"/>
<import addon="xbmc.python" version="2.19.0"/>
</requires>
<extension point="xbmc.python.module"
library="lib" />
<extension point="xbmc.addon.metadata">
<summary>python RPi.GPIO</summary>
<description>This module contains the RPi python GPIO Lib</description>
<platform>linux</platform>
</extension>
</addon>
3 changes: 3 additions & 0 deletions script.module.RPi.GPIO/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
0.0.1
- initial Release
- RPi.GPIO - 0.5.11
Binary file added script.module.RPi.GPIO/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added script.module.RPi.GPIO/lib/RPi/GPIO.so
Binary file not shown.
Empty file.
Empty file.

0 comments on commit cf05a8b

Please sign in to comment.