summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3c97ef3a7a95b7d60087f20dc4f0cd1e591556e (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
#Maintainer: Iru Cai <mytbk920423@gmail.com>

pkgname='libotr-ng-git'
_pkgname='libotr-ng'
pkgver=2884.cd983b2d
pkgrel=1
pkgdesc='A new implementation of OTR with support for version 4.'
arch=('i686' 'x86_64')
url='https://github.com/otrv4/libotr-ng'
license=('LGPL')
depends=('glib2' 'libgoldilocks-git' 'libsodium' 'libotr' 'libgcrypt')
source=('git+https://github.com/otrv4/libotr-ng.git')
sha256sums=('SKIP')

#prepare() {
	#cd "${srcdir}/${_pkgname}"
	#patch -p1 -i "${srcdir}/nopedantic.patch"
#}

build() {
	cd "${srcdir}/${_pkgname}"

	autoreconf --install
	./configure --prefix=/usr --enable-debug=no
	make
}

package() {
	cd "${srcdir}/${_pkgname}"
	make DESTDIR="${pkgdir}" install
}

pkgver() {
	cd "${srcdir}/${_pkgname}"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}