summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81d42f1bb6cad9a9083fc8dba61e91348b2bbd22 (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: KingofToasters <themanhimself@sgregoratto.me>

pkgname=otpclient-git
_dirname="OTPClient"
pkgver=v1.1.0
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() {
	cd $_dirname
	mkdir build 
	cd build
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
	make
}

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