summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5da8b0472a6a70524517c80b95c1f097ee5e02f3 (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
# Maintainer: pzl <alsoelp@gmail.com>

pkgname=pacvcs
pkgver=1.0489599
pkgrel=1
pkgdesc="Pacman VCS version checker"
arch=('any')
url="https://github.com/pzl/pacvcs"
license=('MIT')
depends=()
optdepends=('git' 'bzr')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
options=()
source=('git+https://github.com/pzl/pacvcs.git')
md5sums=('SKIP')
sha256sums=('SKIP')

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

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