summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangtse Su2019-01-07 20:46:58 +0800
committerYangtse Su2019-01-07 20:46:58 +0800
commit62177602d71bfa95ba770283af057ea1369a0650 (patch)
tree39cc3b1a7182828255810c9f6ea5049eb8e15763
parentb4c303f0c5f72b64decd790f469da332d6209290 (diff)
downloadaur-62177602d71bfa95ba770283af057ea1369a0650.tar.gz
fix VERSION
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD22
2 files changed, 14 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6d20b8909b0..338a0cbba44 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
pkgbase = xpadneo-dkms-git
pkgdesc = Advanced Linux Driver for Xbox One S Wireless Gamepad
- pkgver = 0.r209.g38f3f71
- pkgrel = 3
+ pkgver = 0.5.4.r336.g5a2a53a
+ pkgrel = 1
url = https://github.com/atar-axis/xpadneo
arch = x86_64
license = GPL
makedepends = git
depends = dkms
+ depends = bluez
+ depends = bluez-utils
source = git+https://github.com/atar-axis/xpadneo.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index c57ccea97d0..1c9a996ff1f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,30 +2,24 @@
_pkgname=xpadneo
pkgname=xpadneo-dkms-git
-pkgver=0.r209.g38f3f71
-pkgrel=3
+pkgver=0.5.4.r336.g5a2a53a
+pkgrel=1
pkgdesc='Advanced Linux Driver for Xbox One S Wireless Gamepad'
arch=('x86_64')
url='https://github.com/atar-axis/xpadneo'
license=('GPL')
-depends=('dkms')
+depends=('dkms' 'bluez' 'bluez-utils')
makedepends=('git')
source=('git+https://github.com/atar-axis/xpadneo.git')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
-
- if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
- printf '%s.r%s.g%s' \
- "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
- "$(git rev-list --count ${GITTAG}..)" \
- "$(git log -1 --format='%h')"
- else
- printf '0.r%s.g%s' \
+
+ printf '%s.r%s.g%s' \
+ "$(cat VERSION)" \
"$(git rev-list --count master)" \
"$(git log -1 --format='%h')"
- fi
}
package() {
@@ -33,6 +27,10 @@ package() {
VERSION=$(cat VERSION)
+ echo "* replacing version string if necessary"
+ sed -i 's/PACKAGE_VERSION="@DO_NOT_CHANGE@"/PACKAGE_VERSION="'$VERSION'"/g' hid-xpadneo/dkms.conf
+ sed -i 's/#define DRV_VER "@DO_NOT_CHANGE@"/#define DRV_VER "'$VERSION'"/g' hid-xpadneo/src/hid-xpadneo.c
+
echo "* copying module into /usr/src"
install -dm755 ${pkgdir}/usr/src/hid-xpadneo-${VERSION}
cp --recursive $PWD/hid-xpadneo/* ${pkgdir}/usr/src/hid-xpadneo-${VERSION}