Commit fa87c400 authored by J0WI's avatar J0WI Committed by alice
Browse files

community/domoticz: use samurai and system cereal

parent 47c35241
......@@ -2,32 +2,33 @@
# Maintainer: Johannes Heimansberg <git@jhe.dedyn.io>
pkgname=domoticz
pkgver=2022.1
pkgrel=0
pkgrel=1
pkgdesc="Open source Home Automation System"
url="https://www.domoticz.com/"
arch="all"
license="GPL"
license="GPL-3.0-or-later"
options="!check" # missing pytest_bdd module
pkgusers="$pkgname"
pkggroups="$pkgname"
makedepends="cmake openssl1.1-compat-dev zlib-dev curl-dev boost-dev sqlite-dev
lua5.3-dev mosquitto-dev libusb-compat-dev openzwave-dev python3-dev
minizip-dev jsoncpp-dev
minizip-dev jsoncpp-dev cereal samurai
"
checkdepends="py3-pytest"
subpackages="$pkgname-openrc"
install="$pkgname.pre-install"
source="domoticz-$pkgver.tar.gz::https://github.com/domoticz/domoticz/archive/$pkgver.tar.gz
cereal-1.3.0.tar.gz::https://github.com/USCiLab/cereal/archive/v1.3.0.tar.gz
domoticz.confd
domoticz.initd
luafix.patch
domoticz-python-3.10.patch
"
build() {
cmake \
cmake -B build -G Ninja \
-DBUILD_SHARED_LIBS=True \
-DUSE_STATIC_LIBSTDCXX=OFF \
-DUSE_STATIC_OPENZWAVE=OFF \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/var/lib/domoticz \
-DUSE_BUILTIN_MQTT=OFF \
-DUSE_BUILTIN_SQLITE=OFF \
......@@ -37,18 +38,16 @@ build() {
-DUSE_STATIC_LIBSTDCXX=NO \
-DUSE_STATIC_OPENZWAVE=NO \
-DUSE_LUA_STATIC=NO \
-DUSE_OPENSSL_STATIC=NO \
-DCEREAL_INCLUDE_DIRS=../cereal-1.3.0/include \
.
make
-DUSE_OPENSSL_STATIC=NO
cmake --build build
}
check() {
"$builddir"/$pkgname --help > /dev/null
pytest -rA --tb=no test/gherkin/
}
package() {
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --build build --target install
mkdir -p "$pkgdir"/usr/bin \
"$pkgdir"/usr/share/$pkgname
......@@ -70,7 +69,6 @@ package() {
sha512sums="
d75ce3c0033321c20de67bb1e69e33df03f488ca7974bcbecbb109a7c516d19885dc24c6edaa664df51798692c7bff4e3967a0382b6c1a093e4133283a747e86 domoticz-2022.1.tar.gz
2bb640a222d4efe7c624c6ec3e755fecae00ef59e91c4db462e233546c5afe73c065ba1d16d9600f7cd3cc185593109148008b0b2b870208e2f1d6984fd40c72 cereal-1.3.0.tar.gz
724440da335f1e22c8dc181df62dac9ad2bcca98b39bff059de4be5901a93a0a8cb6864d92262092041d796ee7d3933f62cf337316d35a800bbb44f84a1709e0 domoticz.confd
aee1461afa96b6c9af6b88450a2e179990aca8ab74974b03242f58f786843f121fa1dec1177e82c143a775ad2e3db8603f54f341614e9fd55f645085c370b54d domoticz.initd
83e568a2e5e310ffd22c8e8546f96ee15824817a6a65d6027195689a8a7668ec54107c68d54b70cc998cbef36a2b976c9636080ab94e91462b2280de0ac12058 luafix.patch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment