From c6e45dc7db3660ad05d7f9ed73282b1578d74fa8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 16 Aug 2015 10:19:15 -0400 Subject: [PATCH] Switch to VCS versioning --- PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index cc35c39..24f8837 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Drew DeVault pkgname=sway-git _pkgname=sway -pkgver=1.0.0 +pkgver=r170.0d04189 pkgrel=1 license=('MIT') pkgdesc='i3 compatible window manager for Wayland' @@ -13,6 +13,11 @@ url='https://github.com/SirCmpwn/sway' source=("${pkgname%-*}::git+https://github.com/SirCmpwn/sway.git") sha1sums=('SKIP') +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { cd "${srcdir}/${_pkgname}"