summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0d07c4a5a482c6c29fe74ff4667b8f224eba300 (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
# Maintainer: zneix <zneix@zneix.eu>

pkgname=pass-otp-git
pkgver=1.2.0.r29.ga364d2a
pkgrel=2
pkgdesc='A pass extension for managing one-time-password (OTP) tokens.'
arch=('any')
url=https://github.com/tadfisher/pass-otp
license=('GPL3')
depends=()
makedepends=('git' 'make')
provides=('pass-otp')
conflicts=('pass-otp')
options=()
source=('pass-otp::git+https://github.com/tadfisher/pass-otp.git')
sha256sums=('SKIP')

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

package() {
    cd "$srcdir/pass-otp"
    make PREFIX="/usr" DESTDIR="$pkgdir" install
}