summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 142357f85e37e571047307bc07314cf792ce2c3b (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
# Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>

pkgname=zmeventserver-git
_pkgname=${pkgname%%-git}
pkgver=20180331.f6e6a78
pkgrel=1
pkgdesc='A WSS (Secure Web Sockets) based event notification server that broadcasts new events to any authenticated listeners.'
arch=(any)
url='https://github.com/synthead/zmeventserver/tree/support-options-from-cli-and-config-file'
license=(GPL3)
depends=(
  perl-crypt-mysql
  perl-io-socket-ssl
  perl-json
  perl-lwp-protocol-https
  perl-net-websocket-server
  perl-config-inifiles
)
makedepends=(git)
source=(
  'git+https://github.com/synthead/zmeventserver.git#branch=support-options-from-cli-and-config-file'
  zmeventserver.service
)
sha256sums=(
  SKIP
  24a523f42e0022792db99acdfb27c44f9951e25cd7ddcd92b82abbf60fe4d623
)
backup=('etc/zmeventnotification.ini')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git log -1 --format='%cd.%h' --date=short | tr -d -
}

package() {
  install -dm 700 -o 33 "$pkgdir/var/lib/zmeventnotification"

  install -Dm 755 \
    "$srcdir/zmeventserver/zmeventnotification.pl" \
    "$pkgdir/usr/bin/zmeventnotification.pl"

  install -Dm 644 \
    "$srcdir/zmeventserver/zmeventnotification.ini" \
    "$pkgdir/etc/zmeventnotification.ini"

  install -Dm 644 \
    "$srcdir/zmeventserver.service" \
    "$pkgdir/usr/lib/systemd/system/zmeventserver.service"
}