# Maintainer: Reza Jahanbakhshi # Contributor: Melvin Vermeeren pkgname=domoticz-git _gitname="domoticz" pkgver=r14455 pkgrel=1 pkgdesc="Web based home automation" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url="http://www.domoticz.com" license=('GPL') depends=('openzwave-git' 'libusb-compat' 'curl' 'sqlite' 'boost-libs' 'lua' 'mosquitto' 'sqlite' 'cereal') makedepends=('git' 'cmake' 'boost') conflicts=('domoticz-svn') install='domoticz-git.install' source=('git+https://github.com/domoticz/domoticz.git' 'domoticz.service') sha256sums=('SKIP' 'f45f382e5ae0d54f1b1f147b89f5ac5f62719c83a8eb280e20121f8dfc7b2697') pkgver() { cd "$_gitname" printf 'r%s' "$(git rev-list --count HEAD| awk '{print $1 + 2107}')" } build() { cd "$_gitname" cmake \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_BUILTIN_LUA=NO \ -DUSE_BUILTIN_MQTT=NO \ -DUSE_BUILTIN_SQLITE=NO \ -DUSE_OPENSSL_STATIC=NO \ -DUSE_STATIC_BOOST=NO \ -DUSE_STATIC_LIBSTDCXX=NO \ -DUSE_STATIC_OPENZWAVE=NO \ CMakeLists.txt } package() { cd "$_gitname" make DESTDIR="$pkgdir" install chmod o+r "$pkgdir/opt/domoticz/updatedomo" install -Dm 0644 "$srcdir/domoticz.service" \ "$pkgdir/usr/lib/systemd/system/domoticz.service" chown -R http:http "$pkgdir/opt/domoticz" }