summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6bb0ad3935971cd54a11fe11d432eb3a2d03a6fa (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: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>

pkgname=kaar-git
_pkgname=kaar
pkgver=r10.853efc1
pkgrel=1
pkgdesc='Kubernetes Application Archive'
arch=('x86_64')
url='https://github.com/kris-nova/kaar'
makedepends=(
    "go"
    "git"
    "make"
)
license=('Apache')
source=("git+https://github.com/kris-nova/kaar.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_pkgname"
    make
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm755 kaar "$pkgdir"/usr/bin/kaar
}