summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f46454009499fecdb496d0dec8dfd61aa8c2a382 (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
37
38
39
40
41
42
43
44
45
# Maintainer: Mark Austin <ganthore@gmail.com>

pkgname=keysmith-git
pkgver=v0.1.r199.g52bdf6e
pkgrel=1
pkgdesc="An application to generate two-factor authentication (2FA) tokens."
url="https://github.com/KDE/keysmith"
arch=('i686' 'x86_64')
license=('GPL')

depends=('frameworkintegration' 'libsodium' 'qt5-base')
makedepends=('cmake' 'extra-cmake-modules' 'git')
provides=('keysmith' 'keysmith-git')
checkdepends=()
optdepends=()
provides=()
conflicts=("keysmith")

options=('!libtool' '!emptydirs')

source=("git+https://github.com/KDE/keysmith.git")

sha256sums=('SKIP')

pkgver() {
  cd keysmith
  git describe --long | sed 's/-/.r/;s/-/./'
}

prepare() {
	cd keysmith
}

build() {
	cd keysmith
	mkdir -pv build
	cmake -S . -B build -G "Unix Makefiles"
	cd build
	make all
}

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