summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMarco Pompili2020-01-27 15:10:25 +0100
committerMarco Pompili2020-01-27 15:10:25 +0100
commiteab0a6336b8acb71055c17e5ddb37c1058ce6a62 (patch)
tree919c5bf082b17f549d102b0acf79fa53d859990f /PKGBUILD
parent5aacf3adf578bcd04a6fda75dc7a07d18da37301 (diff)
downloadaur-eab0a6336b8acb71055c17e5ddb37c1058ce6a62.tar.gz
set git version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 71343ed0024..718e7a665a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,27 @@
# Maintainer: Gautham Velchuru <gvelchuru@gmail.com>
pkgname=kiibohd-configurator-git
_pkgname=kiibohd-configurator
-pkgver=1.0.0
-pkgrel=3
+pkgver=r271.18ac1cd
+pkgrel=1
pkgdesc="Client Side Configuration & Flashing Software for Kiibohd compatible keyboards"
arch=('x86_64')
url="https://github.com/kiibohd/configurator"
license=('GPL3')
depends=('dfu-util')
-makedepends=('yarn')
+makedepends=('yarn' 'nodejs-lts-erbium')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${pkgname}::git+https://github.com/kiibohd/configurator.git")
sha256sums=('SKIP')
- #_pkg="${srcdir}/${pkgname}"
- #cd "${_pkg}"
- #cp -R * "${pkgdir}/usr/share/${_pkgname}"
+
+#_pkg="${srcdir}/${pkgname}"
+#cd "${_pkg}"
+#cp -R * "${pkgdir}/usr/share/${_pkgname}"
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
build() {
cd ${pkgname}