summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ca456bbe2e22d055f4c78f1eff7d39cb85f660a (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
48
49
# Maintainer: Jan Schmitt <arch@smittie.de>
_pkgname=git-team
pkgname=git-team-git
pkgver=1.7.0.r1.g036ae5e
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=master")
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}"
    mkdir -p ${pkgdir}/opt/${pkgname}
    cp -rf * ${pkgdir}/opt/${pkgname}
	sudo make PREFIX=/usr DESTDIR="$pkgdir/" install
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}