blob: 500ad01064f5d85e9b704929279a2b22617c9b32 (
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
|
# Maintainer: x70b1
pkgname=pam_exec-ssh-git
pkgver=r22.cc3b533
pkgrel=1
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")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
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/${pkgname%-git}"
}
|