aboutsummaryrefslogtreecommitdiffstats
path: root/community/domoticz
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-12-31 18:34:01 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-12-31 20:27:13 +0100
commita5a7270cedeebb72060042927ed1955fda6c37f0 (patch)
tree7b2c8a5175e2158fced5ddf7d10203e931682f13 /community/domoticz
parent0da58c57d69234ec08f867d7d51c5b5fabe56ee6 (diff)
downloadaports-a5a7270cedeebb72060042927ed1955fda6c37f0.tar.bz2
aports-a5a7270cedeebb72060042927ed1955fda6c37f0.tar.xz
community/domoticz: improve abuild, fix indentation
Diffstat (limited to 'community/domoticz')
-rw-r--r--community/domoticz/APKBUILD76
1 files changed, 37 insertions, 39 deletions
diff --git a/community/domoticz/APKBUILD b/community/domoticz/APKBUILD
index 25a512277a..47e33181e2 100644
--- a/community/domoticz/APKBUILD
+++ b/community/domoticz/APKBUILD
@@ -7,62 +7,60 @@ pkgdesc="Open source Home Automation System"
url="http://www.domoticz.com/"
arch="all !armhf"
license="GPL"
-depends=""
-depends_dev=""
pkgusers="$pkgname"
pkggroups="$pkgname"
-makedepends="$depends_dev cmake libressl-dev zlib-dev curl-dev boost-dev
- sqlite-dev lua5.2-dev mosquitto-dev libusb-compat-dev openzwave-dev
- python3-dev
+makedepends="cmake libressl-dev zlib-dev curl-dev boost-dev sqlite-dev
+ lua5.2-dev mosquitto-dev libusb-compat-dev openzwave-dev python3-dev
"
install="$pkgname.pre-install"
-subpackages=""
source="domoticz-$pkgver.tar.gz::https://github.com/domoticz/domoticz/archive/$pkgver.tar.gz
domoticz.confd
domoticz.initd
"
-
builddir="$srcdir/domoticz-$pkgver"
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"/usr/share/$pkgname || return 1
- mv "$pkgdir"/var/lib/domoticz/domoticz \
- "$pkgdir"/usr/bin/ || return 1
- mv "$pkgdir"/var/lib/domoticz/www \
- "$pkgdir"/usr/share/$pkgname/ || return 1
- mv "$pkgdir"/var/lib/domoticz/Config \
- "$pkgdir"/usr/share/$pkgname/ || return 1
- rm -f "$pkgdir"/var/lib/domoticz/updatedomo
- chown -R $pkgname "$pkgdir"/var/lib/domoticz || return 1
- install -D -m755 "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname || return 1
- install -D -m644 "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname || return 1
+ 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
+ make
}
check() {
"$builddir"/$pkgname --help > /dev/null
}
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/bin \
+ "$pkgdir"/usr/share/$pkgname
+ mv "$pkgdir"/var/lib/domoticz/domoticz \
+ "$pkgdir"/usr/bin/
+ mv "$pkgdir"/var/lib/domoticz/www \
+ "$pkgdir"/usr/share/$pkgname/
+ mv "$pkgdir"/var/lib/domoticz/Config \
+ "$pkgdir"/usr/share/$pkgname/
+ rm -f "$pkgdir"/var/lib/domoticz/updatedomo
+
+ chown -R $pkgname "$pkgdir"/var/lib/domoticz
+
+ install -D -m755 "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/$pkgname
+ install -D -m644 "$srcdir"/$pkgname.confd \
+ "$pkgdir"/etc/conf.d/$pkgname
+}
+
sha512sums="6c4e30b28fa4a5969ddf8a2c275e390394087b036af795921b114c7a734e966b546b33dd353b9aeefce39b30ce502067aadc8616c0fb25b3d97d58aa31922786 domoticz-3.8153.tar.gz
724440da335f1e22c8dc181df62dac9ad2bcca98b39bff059de4be5901a93a0a8cb6864d92262092041d796ee7d3933f62cf337316d35a800bbb44f84a1709e0 domoticz.confd
3ddbd3848cce2247a52e4673307a078717d75cb3fea2937d9f2442d94dccd0efc63120f1b0324c7091ae158cd0ec4fd36334af43bb887d45ff4a93e6a96e9bd2 domoticz.initd"