summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtse Su2020-07-14 22:45:02 +0800
committerYangtse Su2020-07-14 22:45:02 +0800
commit99070fd0c7ac0f17906e80ebb44cf52ac513e531 (patch)
tree9e28cc8d21984d8fae05b12c20cc8e6b0451af6c
parent1b7f629eac0aeacd65761244f01e1c2f284e7992 (diff)
downloadaur-99070fd0c7ac0f17906e80ebb44cf52ac513e531.tar.gz
add provide and conflict; slap a v
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dfcb3a42e8d..7430b86368b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = xpadneo-dkms-git
pkgdesc = Advanced Linux Driver for Xbox One Wireless Gamepad
- pkgver = 0.6.0.r404.g4414f98
+ pkgver = 0.8.r8.g1fed9aa
pkgrel = 1
url = https://github.com/atar-axis/xpadneo
arch = x86_64
@@ -9,6 +9,8 @@ pkgbase = xpadneo-dkms-git
depends = dkms
depends = bluez
depends = bluez-utils
+ provides = xpadneo-dkms
+ conflicts = xpadneo-dkms
source = git+https://github.com/atar-axis/xpadneo.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 9bbee6eea38..0a57d20375a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=xpadneo
pkgname=xpadneo-dkms-git
-pkgver=0.6.0.r404.g4414f98
+pkgver=0.8.r8.g1fed9aa
pkgrel=1
pkgdesc='Advanced Linux Driver for Xbox One Wireless Gamepad'
arch=('x86_64')
@@ -10,16 +10,14 @@ url='https://github.com/atar-axis/xpadneo'
license=('GPL')
depends=('dkms' 'bluez' 'bluez-utils')
makedepends=('git')
+conflicts=('xpadneo-dkms')
+provides=('xpadneo-dkms')
source=('git+https://github.com/atar-axis/xpadneo.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
-
- printf '%s.r%s.g%s' \
- "$(cat VERSION)" \
- "$(git rev-list --count master)" \
- "$(git log -1 --format='%h')"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {