summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa91f1bb3fa9b0b45bf6baa4355d7965c8f03741 (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: x70b1

pkgname=pam_exec-ssh
pkgver=r11.50fe297
pkgrel=3
pkgdesc="Unlock SSH keys on login using PAM"
arch=(any)
url="https://github.com/x70b1/pam_exec-ssh"
license=("The Unlicense")
makedepends=("git")
depends=("pam" "expect")
source=("${pkgname}::git+${url}.git")
noextract=()
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname}
  set -o pipefail
  git describe --long 2> /dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd ${pkgname}
  install -Dm755 pam_exec-ssh "${pkgdir}"/usr/bin/pam_exec-ssh
}