summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 183c35f950400bcad480693b32a9a17fe3a53774 (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@sgregoratto.me>

pkgname=otpclient-git
_dirname="OTPClient"
pkgver=v1.1.0.r0.457122e
pkgrel=1
pkgdesc="Simple GTK+ v3 TOTP/HOTP client that uses libcotp"
arch=('x86_64')
url="https://github.com/paolostivanin/OTPClient"
license=('GPL3')
depends=('gtk3' 'glib2' 'jansson' 'libgcrypt' 'libzip' 'libcotp' 'pkg-config')
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
}