summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edde5ee3f859b2a1a9bfa661dc5998c931529e22 (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
# Maintainer: KingofToasters <themanhimself at sgregoratto dot me>

pkgname=otpclient-git
_dirname=OTPClient
pkgver=v1.2.0.r4.3ca48f2
pkgrel=1
pkgdesc="A simple GTK+ v3 TOTP/HOTP client"
arch=('x86_64')
url="https://github.com/paolostivanin/OTPClient"
license=('GPL3')
depends=('gtk3' 'glib2' 'jansson' 'libgcrypt' 'libzip' 'libcotp' 'libpng' 'zbar')
makedepends=('cmake' 'git')
conflicts=(otpclient)
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
	cd "$_dirname"
 	git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
	cmake "$_dirname"/ -DCMAKE_INSTALL_PREFIX:PATH=/usr 
	make
}

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