summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33c565bf94fc63a1fe8e3d3957f0641cd8a27455 (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
# Maintainer: Dasith Gunawardhana <dasith@dg10a.com>

_pkgname=auther
pkgname=${_pkgname}-git
pkgver=r47.5533a9e
pkgrel=1
pkgdesc="A cross-platform OTP token manager"
arch=('x86_64')
url="https://gitlab.com/dg10a/auther.git"
license=('GPL3')
depends=('qt5-base' 'qt5-quickcontrols2')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=('git+https://gitlab.com/dg10a/auther.git'
	'git+https://github.com/keepassxreboot/keepassxc.git')
md5sums=('SKIP' 'SKIP')

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

prepare() {
	cd "$srcdir/${_pkgname}"
	git submodule init
	git config submodule.deps/keepassxc.url "$srcdir/keepassxc"
	git -c protocol.file.allow=always submodule update
}

build() {
	cd "$srcdir/${_pkgname}"
	qmake-qt5
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	make INSTALL_ROOT="${pkgdir}" install
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}