diff options
author | Yangtse Su | 2020-07-14 22:45:02 +0800 |
---|---|---|
committer | Yangtse Su | 2020-07-14 22:45:02 +0800 |
commit | 99070fd0c7ac0f17906e80ebb44cf52ac513e531 (patch) | |
tree | 9e28cc8d21984d8fae05b12c20cc8e6b0451af6c /PKGBUILD | |
parent | 1b7f629eac0aeacd65761244f01e1c2f284e7992 (diff) | |
download | aur-99070fd0c7ac0f17906e80ebb44cf52ac513e531.tar.gz |
add provide and conflict; slap a v
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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() { |