summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50d1f692f6813b7e47347ee8796cbe63bacf3a67 (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
# Maintainer: fzerorubigd <fzero@rubi.gd>

pkgname=yubipam-git
pkgver=r41.9427495
pkgrel=1
pkgdesc="YubiPAM is a module for PAM that provides support for One Time Passwords (OTP) authentication."
url="https://github.com/firnsy/yubipam"
arch=(any)
license=('GPL-2')
depends=()
makedepends=()
source=("git+https://github.com/fzerorubigd/yubipam.git")
md5sums=('SKIP')
provides=('yubipam')
pkgver() {
  cd "$srcdir/yubipam"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

install=$pkgname.install

package() {
    cd $srcdir/yubipam
    autoreconf -i
    ./configure
    make
    make DESTDIR=$pkgdir install
    mv $pkgdir/lib $pkgdir/usr/
}