Switch to VCS versioning
This commit is contained in:
parent
fe5a498965
commit
c6e45dc7db
7
PKGBUILD
7
PKGBUILD
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
||||||
pkgname=sway-git
|
pkgname=sway-git
|
||||||
_pkgname=sway
|
_pkgname=sway
|
||||||
pkgver=1.0.0
|
pkgver=r170.0d04189
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
pkgdesc='i3 compatible window manager for Wayland'
|
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")
|
source=("${pkgname%-*}::git+https://github.com/SirCmpwn/sway.git")
|
||||||
sha1sums=('SKIP')
|
sha1sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "${srcdir}/${_pkgname}"
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${_pkgname}"
|
cd "${srcdir}/${_pkgname}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user