aports/community/domoticz/APKBUILD
Bart Ribbers 66c24705e6 community/domoticz: move files from /var to /usr
According to the FHS /var is meant for variable data which files
installed by the package manager is not by definition
2024-11-15 10:22:56 +00:00

80 lines
2.2 KiB
Text

# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Johannes Heimansberg <git@jhe.dedyn.io>
pkgname=domoticz
pkgver=2024.7
pkgrel=2
pkgdesc="Open source Home Automation System"
url="https://www.domoticz.com/"
arch="all"
license="GPL-3.0-or-later"
options="!check" # missing pytest_bdd module
pkgusers="$pkgname"
pkggroups="$pkgname"
makedepends="
boost-dev
cereal
cmake
curl-dev
jsoncpp-dev
libusb-compat-dev
lua5.3-dev
minizip-dev
mosquitto-dev
openssl-dev>3
openzwave-dev
python3-dev
samurai
sqlite-dev
zlib-dev
"
checkdepends="py3-pytest"
subpackages="$pkgname-openrc"
install="$pkgname.pre-install"
source="domoticz-$pkgver.tar.gz::https://github.com/domoticz/domoticz/archive/$pkgver.tar.gz
luafix.patch
domoticz.confd
domoticz.initd
"
build() {
cmake -B build -G Ninja \
-DBUILD_SHARED_LIBS=True \
-DUSE_STATIC_LIBSTDCXX=OFF \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr/share/domoticz \
-DUSE_BUILTIN_MQTT=OFF \
-DUSE_BUILTIN_SQLITE=OFF \
-DUSE_BUILTIN_MINIZIP=OFF \
-DUSE_BUILTIN_JSONCPP=OFF \
-DUSE_STATIC_BOOST=NO \
-DUSE_STATIC_LIBSTDCXX=NO \
-DUSE_LUA_STATIC=NO \
-DUSE_OPENSSL_STATIC=NO
cmake --build build
}
check() {
pytest -rA --tb=no test/gherkin/
}
package() {
DESTDIR="$pkgdir" cmake --install build
mkdir -p \
"$pkgdir"/usr/bin \
"$pkgdir"/usr/share/$pkgname
mv "$pkgdir"/usr/share/domoticz/domoticz \
"$pkgdir"/usr/bin/
rm -f "$pkgdir"/usr/share/domoticz/updatedomo
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="
0eee91f62cebc9dccb1bb25ed9749f2bc99036311cf8d034e5a57e5ad6e6340552ee9782bbcd5b9ed60466d97f2682d05673b4c8a0122511aab4af6a69704c3b domoticz-2024.7.tar.gz
83e568a2e5e310ffd22c8e8546f96ee15824817a6a65d6027195689a8a7668ec54107c68d54b70cc998cbef36a2b976c9636080ab94e91462b2280de0ac12058 luafix.patch
724440da335f1e22c8dc181df62dac9ad2bcca98b39bff059de4be5901a93a0a8cb6864d92262092041d796ee7d3933f62cf337316d35a800bbb44f84a1709e0 domoticz.confd
aee1461afa96b6c9af6b88450a2e179990aca8ab74974b03242f58f786843f121fa1dec1177e82c143a775ad2e3db8603f54f341614e9fd55f645085c370b54d domoticz.initd
"