summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 890ed05b58e88a4f20011910731de7c2abe4c4d9 (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
# Maintainer: Joe Davison <joe@warhaggis.com>

pkgname=znc-otr-git
pkgver=r57.ca696c9
pkgrel=1
pkgdesc="OTR (Off The Record) messaging for ZNC"
arch=('i686' 'x86_64')
url="http://wiki.znc.in/Otr"
license=('Apache')
depends=('znc' 'libotr')
source=("git+https://github.com/mmilata/znc-otr.git")
sha256sums=('SKIP')

pkgver() {
	cd $srcdir/znc-otr
	( 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 $srcdir/znc-otr
	make
}

package() {
	cd $srcdir/znc-otr

	install -D -m755 otr.so "$pkgdir/usr/lib/znc/otr.so"
	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}