summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pompili2020-01-27 15:10:25 +0100
committerMarco Pompili2020-01-27 15:10:25 +0100
commiteab0a6336b8acb71055c17e5ddb37c1058ce6a62 (patch)
tree919c5bf082b17f549d102b0acf79fa53d859990f
parent5aacf3adf578bcd04a6fda75dc7a07d18da37301 (diff)
downloadaur-eab0a6336b8acb71055c17e5ddb37c1058ce6a62.tar.gz
set git version
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD18
2 files changed, 15 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 23d0344dde0..6041dd436a0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = kiibohd-configurator-git
pkgdesc = Client Side Configuration & Flashing Software for Kiibohd compatible keyboards
- pkgver = 1.0.0
- pkgrel = 3
+ pkgver = r271.18ac1cd
+ pkgrel = 1
url = https://github.com/kiibohd/configurator
arch = x86_64
license = GPL3
makedepends = yarn
+ makedepends = nodejs-lts-erbium
depends = dfu-util
provides = kiibohd-configurator
conflicts = kiibohd-configurator
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}