summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ff35709be7da16ff81e7be38ab281521fb14521 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Jan Schmitt <arch@smittie.de>
_pkgname=git-team
pkgname=git-team-git
pkgver=1.7.0.r30.gb9cd427
pkgrel=1
epoch=
pkgdesc="Command line interface for managing and enhancing git commit messages with co-authors."
arch=(x86_64)
url="https://github.com/hekmekk/git-team.git"
license=('MIT')
groups=()
depends=(go)
makedepends=(git)
checkdepends=()
optdepends=()
provides=(git-team)
conflicts=(git-team)
replaces=()
backup=()
options=()
install=
changelog=
source=("$_pkgname"::"git+$url#branch=main")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

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

build() {
    cd "${_pkgname}"
    if [[ "$GOPATH" == "" ]]; then
        GOPATH="$HOME/go" make --jobs=1
    else
        make --jobs=1
    fi
}

package() {
    cd "${_pkgname}"
    make prefix="${pkgdir}/usr" install
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}