diff options
Diffstat (limited to 'testing/domoticz/APKBUILD')
-rw-r--r-- | testing/domoticz/APKBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
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" |