diff options
author | BuildTools | 2017-09-03 12:40:43 -0400 |
---|---|---|
committer | BuildTools | 2017-09-03 12:40:43 -0400 |
commit | f502b0e575aa262008bdf31c3cb37d0784deae1d (patch) | |
tree | daf8bbfbf15f90b4986c2aa34b8c86a6b4c0fe63 /PKGBUILD | |
parent | c2bda587d6340db16257b5c317797c327783da91 (diff) | |
download | aur-f502b0e575aa262008bdf31c3cb37d0784deae1d.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 60 |
1 files changed, 33 insertions, 27 deletions
@@ -1,41 +1,47 @@ -# Maintainer: IanDury +# Maintainer: Jameson Pugh <imntreal@gmail.com> pkgname=domoticz -pkgver=3.5877 -pkgrel=2 +pkgver=3.8153 +pkgrel=1 pkgdesc="Web based home automation" -arch=('x86_64' 'arm' 'armv6h' 'armv7h') +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url="http://www.domoticz.com" license=('GPL') -depends=('openzwave-git' 'libusb-compat' 'curl' 'sqlite' 'boost-libs' 'libcurl-compat') -conflicts=('domoticz-svn' 'domoticz-git' 'domoticz-beta') +depends=('openzwave' 'libusb-compat' 'curl' 'sqlite' 'boost-libs' 'lua52' 'mosquitto') +makedepends=('git' 'cmake' 'boost') install='domoticz.install' -case $CARCH in - armv8*) - _target_arch=aarch64 - ;; - arm*) - _target_arch=armv7l - ;; - *) - _target_arch=$CARCH - ;; -esac - -source=("https://releases.domoticz.com/releases/release/domoticz_linux_${_target_arch}.tgz" - "https://releases.domoticz.com/releases/release/history_linux_${_target_arch}.txt" +source=("https://github.com/domoticz/domoticz/archive/${pkgver}.tar.gz" 'domoticz.service') -sha256sums=('SKIP' 'SKIP' - 'bf9e8cd4e1215ac3847bee60e7078777dbcd14787b33ecc443de451a1b0a1728') +sha256sums=('5ea8f37f2ef900e9bd17b1b5375e75bfdec4f09001e3e2e0b647a260989d014c' + '52ea28893fc70a278a728f975c249ace48e48f595c9da01895bde115e8e6b255') + +prepare() { + mkdir -p ${srcdir}/${pkgname}-${pkgver}/build +} -pkgver() { - echo "$(grep ^Version history_linux_${_target_arch}.txt | head -1 | cut -d' ' -f2)" +build() { + cd ${srcdir}/${pkgname}-${pkgver}/build + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/opt/domoticz \ + -DUSE_STATIC_OPENZWAVE=NO \ + -DUSE_BUILTIN_LUA=NO \ + -DUSE_BUILTIN_MQTT=NO \ + -DUSE_BUILTIN_SQLITE=NO \ + -DUSE_BUILTIN_ZLIB=NO \ + -DUSE_STATIC_BOOST=NO \ + -DUSE_STATIC_LIBSTDCXX=NO \ + -DUSE_STATIC_OPENZWAVE=NO \ + .. } package() { - mkdir -p "${pkgdir}/opt/domoticz/" - cp -R Config domoticz History.txt License.txt scripts server_cert.pem www domoticz.sh history_linux_${_target_arch}.txt "${pkgdir}/opt/domoticz/" + cd ${srcdir}/${pkgname}-${pkgver}/build + + make DESTDIR=${pkgdir} install + chmod o+r "${pkgdir}/opt/domoticz/updatedomo" mkdir -p "${pkgdir}/usr/lib/systemd/system" - cp ../domoticz.service "${pkgdir}/usr/lib/systemd/system/" + cp ${srcdir}/domoticz.service "${pkgdir}/usr/lib/systemd/system/" chown -R http:http "${pkgdir}/opt/domoticz" } + +# vim:set ts=2 sw=2 et: |