summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab2839c63d113b51a78cf07cd2f55cdb64039fba (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
pkgname=update-ssh-keys
pkgver=0.0.1
pkgrel=1
pkgdesc="SSH Key helper binary from github.com/coreos/update-ssh-keys"
arch=('x86_64')
url="https://github.com/coreos/update-ssh-keys"
license=(apache)
makedepends=('go')
provides=('update-ssh-keys')
replaces=('update-ssh-keys')
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

build() {
  cd "$pkgname"
  ./build
}

package() {
  cd "${pkgname}"
  mkdir -p ${pkgdir}/usr/bin
  cp bin/* ${pkgdir}/usr/bin
}

# vim:set ts=2 sw=2 et: