summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorYangtse Su2020-07-14 22:45:02 +0800
committerYangtse Su2020-07-14 22:45:02 +0800
commit99070fd0c7ac0f17906e80ebb44cf52ac513e531 (patch)
tree9e28cc8d21984d8fae05b12c20cc8e6b0451af6c /PKGBUILD
parent1b7f629eac0aeacd65761244f01e1c2f284e7992 (diff)
downloadaur-99070fd0c7ac0f17906e80ebb44cf52ac513e531.tar.gz
add provide and conflict; slap a v
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 4 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9bbee6eea382..0a57d20375a5 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() {