blob: 58bc1bdbc19d96eb9d8c2a6b0d000e030a42a51e (
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
|
# Maintainer: Breno Cunha Queiroz <breno1423@gmail.com>
pkgname=git-kudos-git
pkgver=1.0.0
pkgrel=1
pkgdesc="Print repo contributions and give authors their well-deserved kudos!"
arch=(x86_64)
url="https://github.com/brenocq/git-kudos"
license=('MIT')
depends=(cmake git)
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/git-kudos"
git describe --tags | sed 's/^v//;s/-/+/g'
}
build() {
cd "$srcdir/git-kudos"
cmake -S . -B build
cmake --build build
}
package() {
cd git-kudos
install -Dm755 build/git-kudos "$pkgdir/usr/bin/git-kudos"
install -Dm644 completion/git-kudos.sh "$pkgdir/usr/share/bash-completion/completions/git-kudos"
install -Dm644 completion/git-kudos.fish "$pkgdir/usr/share/fish/completions/git-kudos.fish"
install -Dm644 completion/git-kudos.zsh "$pkgdir/usr/share/zsh/site-functions/_git-kudos"
}
|