summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b576c54d998dee1b6d4b6d21745588397220e1d (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"
}