diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-08 14:25:33 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-08 14:25:48 +0100 |
commit | 7e1e103b720a9177ccc418b248dfaad700321e2a (patch) | |
tree | 0b40f5a9032a096e421e87b69e0b803cdbab03a2 /testing | |
parent | 4a137a0a30681867897804fe5881ee9de1e4620e (diff) | |
download | aports-7e1e103b720a9177ccc418b248dfaad700321e2a.tar.bz2 aports-7e1e103b720a9177ccc418b248dfaad700321e2a.tar.xz |
testing/domoticz: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/domoticz/3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch | 26 | ||||
-rw-r--r-- | testing/domoticz/APKBUILD | 64 |
2 files changed, 90 insertions, 0 deletions
diff --git a/testing/domoticz/3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch b/testing/domoticz/3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch new file mode 100644 index 0000000000..cd53fb42a3 --- /dev/null +++ b/testing/domoticz/3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch @@ -0,0 +1,26 @@ +From 3d203dcfe6fef7c8ff5d0dbc030b7b7934406999 Mon Sep 17 00:00:00 2001 +From: Carlo Landmeter <clandmeter@gmail.com> +Date: Mon, 8 Feb 2016 14:19:26 +0100 +Subject: [PATCH] Fix detection of system Lua + +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bbf2735..ff356c1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,10 +10,11 @@ IF(USE_BUILTIN_LUA) + DEFINITION LUA_LIBRARIES) + ELSE(USE_BUILTIN_LUA) + find_package(PkgConfig) +- pkg_check_modules(LUA lua>=5.2) ++ pkg_search_module(LUA lua5.2>=5.2 lua>=5.2) + IF(LUA_FOUND) + INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIRS}) + add_definitions(-DWITH_EXTERNAL_LUA) ++ link_directories(${LUA_LIBRARY_DIRS}) + ELSE(LUA_FOUND) + MESSAGE(FATAL_ERROR "LUA not found but USE_BUILTIN_LUA=NO") + ENDIF(LUA_FOUND) diff --git a/testing/domoticz/APKBUILD b/testing/domoticz/APKBUILD new file mode 100644 index 0000000000..824e88621e --- /dev/null +++ b/testing/domoticz/APKBUILD @@ -0,0 +1,64 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=domoticz +pkgver=20160207 +pkgrel=0 +pkgdesc="Open source Home Automation System" +url="http://www.domoticz.com/" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="cmake $depends_dev openssl-dev zlib-dev curl-dev boost-dev + sqlite-dev lua5.2-dev mosquitto-dev libusb-dev libusb-compat-dev + openzwave-dev" +install="" +subpackages="" +source="http://dev.alpinelinux.org/archive/domoticz/domoticz-$pkgver.tar.gz + 3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch + " + +_builddir="$srcdir/domoticz-master" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + cmake \ + -DBUILD_SHARED_LIBS=True \ + -DUSE_STATIC_LIBSTDCXX=OFF \ + -DOpenZWave=/usr/lib/libopenzwave.so \ + -DUSE_STATIC_OPENZWAVE=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/var/lib/domoticz \ + -DUSE_BUILTIN_LUA=OFF \ + -DUSE_BUILTIN_MQTT=OFF \ + -DUSE_BUILTIN_SQLITE=OFF \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + mkdir -p "$pkgdir"/usr/bin "$pkgdir"/etc + mv "$pkgdir"/var/lib/domoticz/domoticz \ + "$pkgdir"/usr/bin/ || return 1 + rm -f "$pkgdir"/var/lib/domoticz/updatedomo + mv "$pkgdir"/var/lib/domoticz/Config \ + "$pkgdir"/etc/domoticz || return 1 +} +md5sums="1092ea41a91d82f321b372e3b390c09c domoticz-20160207.tar.gz +39295664197b86b9b67cce90220f8c10 3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch" +sha256sums="33419077e8f45ab30084867d09271db359fb57cdc54dce8fafa09a2e2327bdec domoticz-20160207.tar.gz +be6748531de484d5a40da4abde4989216b4d91a06b03639faa2943efcf71a8c0 3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch" +sha512sums="19ea7391004c109199f913a6b08d8b4ad03c0e3f0405047e52d9c178735f309ae9e25748f0c297e4f777353e6cd78309049811b93a743390256f10abc27833a0 domoticz-20160207.tar.gz +2d8ccffc508d9ee7360bd718187a3c9c1eee1356d415f8258259e52640e249dc5af5998c9c4d26e9d8fdf27b61e5b14607fbb55e1c531619a5df91a6d80b5e86 3d203dcfe6fef7c8ff5d0dbc030b7b7934406999.patch" |