summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ee6bdeb33f46c962ca8ec945dfb081cc4f26648 (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
# Maintainer: Darshit Shah <darnir@gmail.com>

_pkgname=git-recent
pkgname=${_pkgname}-git
pkgver=1.1.1.r0.g1985391
pkgrel=1
pkgdesc="See your latest local git branches, formatted real fancy"
arch=(any)
url="https://github.com/paulirish/git-recent"
license=('MIT')
makedepends=('git')
provides=('git-recent')
conflicts=('git-recent')
source=("git+${url}.git")
sha384sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git describe --always --tags --long | sed 's/^v//; s/-/.r/; s/-/./g'
}

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