# Maintainer: Frederik Schwan # Contributor: Sébastien Luttringer pkgname=unifi-controller-beta pkgver=5.2.2 _pkgver=6505992c pkgrel=1 pkgdesc='Controller for Ubiquiti UniFi accesspoints' arch=('any') url='http://www.ubnt.com/' license=('custom') depends=('mongodb' 'java-runtime') provides=('unifi') conflicts=('unifi') backup=('opt/unifi/data/system.properties') install=unifi.install source=("https://www.ubnt.com/downloads/unifi/${pkgver}-${_pkgver}/UniFi.unix.zip" 'unifi.service') sha512sums=('2bf2f0cb1f27a66ac701ddc42a6acd969c1d600423f023e3da175386f9c1fd9aa23378c51952d9896be5d575200c91166b9d2f28cb1bba8c4556b83b62a2e4d1' 'eb6625d99634dee0298a961aaead6e3c504f2bf1c502ff071c52e46e8c0817e169ff2020d2e7bda9bac0f170c5214ec6939b14c16c6c6ce8da75ac6930ca2a47') package() { install -d "$pkgdir/opt" cp -ar UniFi "$pkgdir/opt/unifi" chown -R 113:113 "$pkgdir/opt/unifi" rm "$pkgdir/opt/unifi/readme.txt" install -D -m 644 unifi.service "$pkgdir/usr/lib/systemd/system/unifi.service" }