summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfc61fddfc928f2a70d6ff6b0f57955cf79584bd (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
# Maintainer: Leela Ross <leela@leela-ross.com>
pkgname=znc-push-git
pkgver=v1.0.0.r116.g717a2b1 
pkgrel=1
pkgdesc="ZNC Push is a module for ZNC that will send notifications to multiple push notification services"
arch=('i686' 'x86_64')
url="http://noswap.com/projects/znc-push"
license=('MIT')
depends=('znc')
source=("git+https://github.com/jreese/znc-push.git")
sha256sums=('SKIP')

pkgver() {
  cd znc-push
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd znc-push
  znc-buildmod push.cpp
}

package() {
  cd znc-push
  install -Dm755 push.so "$pkgdir/usr/lib/znc/push.so"
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}