summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ca8a15474d27595cfb9c5108fb0b3d88b8dc69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname=clevis-pin-fido2-git
pkgver=r3.acbc254
pkgrel=1
pkgdesc='Clevis pin fido2'
arch=(any)
url='https://github.com/olastor/clevis-pin-fido2'
license=(MIT)
makedepends=(git)
depends=(bash)
source=(git+https://github.com/olastor/clevis-pin-fido2)
sha512sums=('SKIP')

pkgver() {
  cd clevis-pin-fido2
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd clevis-pin-fido2
  install -Dm755 -t "$pkgdir/usr/bin" clevis-decrypt-fido2 clevis-encrypt-fido2
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}