blob: 9900e3a6d53baaa0fa7bd1a96c9e1ca1c770747c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: iamawacko <iamawacko@protnmail.com>
# Contributor : Arvid Norlander <VorpalBlade (at) users DOT noreply DOT github DOT com>
# Contributor : Martin Dratva <raquacontact+aur at gmail dot com>
# Contributor : Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor : Jaron Viƫtor <thulinma@thulinma.com>
# Contributor : Jameson Pugh <imntreal@gmail.com>
pkgname=domoticz
pkgver=2024.7
pkgrel=1
pkgdesc="Web based home automation"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url='https://www.domoticz.com'
license=('GPL3')
depends=('libusb-compat'
'curl'
'sqlite'
'boost-libs'
'lua'
'minizip'
'cereal'
'mosquitto'
'jsoncpp'
'python')
makedepends=('git'
'cmake'
'boost')
install='domoticz.install'
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/domoticz/domoticz/archive/${pkgver}.tar.gz"
'domoticz.service')
sha256sums=('6ceabbfe36ada4b7c2ebb42c523d723c87e6444b87db6bbb1703d92f38ee754d'
'908e2848731eef27928f87936f94ff3df280901559fcf5f4754b1a8139e4a38a')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
#local p
#for p in "${srcdir}"/*.patch; do
# patch --forward --strip=1 --input="${p}"
#done
mkdir -p "${srcdir}/${pkgname}-${pkgver}/build"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/domoticz \
-DUSE_STATIC_OPENZWAVE=NO \
-DUSE_BUILTIN_JSONCPP=NO \
-DUSE_BUILTIN_MINIZIP=NO \
-DUSE_BUILTIN_MQTT=NO \
-DUSE_BUILTIN_SQLITE=NO \
-DUSE_STATIC_BOOST=NO \
-DUSE_STATIC_LIBSTDCXX=NO \
-DUSE_OPENSSL_STATIC=NO \
-DUSE_PYTHON=YES \
..
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}/build
make DESTDIR=${pkgdir} install
chmod o+r "${pkgdir}/opt/domoticz/updatedomo"
mkdir -p "${pkgdir}/usr/lib/systemd/system"
cp ${srcdir}/domoticz.service "${pkgdir}/usr/lib/systemd/system/"
chown -R http:http "${pkgdir}/opt/domoticz"
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm "${pkgdir}/opt/domoticz/License.txt"
}
|