alpine-mips-patches 8b256dcd69 community/domoticz: fix build without git installed
Let build continue when git is not found. No changes in behaviour
because all attempts to use git (to get project revision etc) fail
due to missing .git folder in the source tarball and project falls
back to appversion.default in any case.
2018-12-17 08:59:04 +00:00

73 lines
2.3 KiB
Plaintext

# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=domoticz
pkgver=4.9700
pkgrel=1
pkgdesc="Open source Home Automation System"
url="http://www.domoticz.com/"
arch="all !armhf !armv7"
license="GPL"
pkgusers="$pkgname"
pkggroups="$pkgname"
makedepends="cmake openssl-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"
source="domoticz-$pkgver.tar.gz::https://github.com/domoticz/domoticz/archive/$pkgver.tar.gz
domoticz.confd
domoticz.initd
do-not-fail-if-git-missing.patch
"
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 \
-DUSE_STATIC_BOOST=NO \
-DUSE_STATIC_LIBSTDCXX=NO \
-DUSE_STATIC_OPENZWAVE=NO \
-DUSE_OPENSSL_STATIC=NO
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="f677a082b5ac4057142a6b71998d0e08042481821ceb2760a07af3745fc8900279e6b469e244fd3a08bb2dabf9efd903dd1e0c54adc726a09754594484bb92f6 domoticz-4.9700.tar.gz
724440da335f1e22c8dc181df62dac9ad2bcca98b39bff059de4be5901a93a0a8cb6864d92262092041d796ee7d3933f62cf337316d35a800bbb44f84a1709e0 domoticz.confd
3ddbd3848cce2247a52e4673307a078717d75cb3fea2937d9f2442d94dccd0efc63120f1b0324c7091ae158cd0ec4fd36334af43bb887d45ff4a93e6a96e9bd2 domoticz.initd
dc3e9207b984b042866538f6fe87d02c0b182e41f3fc8d747ee5368f148614474733fe11971a928dc0673dafdb0857f88bfc03823c364e013d8fdb515dc24403 do-not-fail-if-git-missing.patch"