summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5da8b0472a6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}