makedeb
Application to control the MFD and LEDs of a Saitek X52/X52Pro HOTAS
Click here to go back to the commit logs for libx52.
Hash: 16210b9f60491c3baab07725d3b370553bf1c799
Message: Update for libx52 v0.3.0
diff --git a/.SRCINFO b/.SRCINFO
index 197fde0..0ed9705 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,9 +2,9 @@ generated-by = makedeb-makepkg
pkgbase = libx52
pkgdesc = Application to control the MFD and LEDs of a Saitek X52/X52Pro HOTAS
- pkgver = 0.2.3_4_gb45dc59
+ pkgver = 0.3.0
pkgrel = 1
- url = https://github.com/nirenjan/x52pro-linux
+ url = https://github.com/nirenjan/libx52
arch = x86_64
license = GPL2
makedepends = autoconf
@@ -18,13 +18,12 @@ pkgbase = libx52
makedepends = libhidapi-dev
makedepends = libevdev-dev
makedepends = doxygen
- makedepends = rsync
makedepends = libcmocka-dev
makedepends = git
depends = libusb-1.0-0
depends = libhidapi-hidraw0
depends = libevdev2
- source = git+https://github.com/nirenjan/x52pro-linux.git
- sha256sums = SKIP
+ source = https://github.com/nirenjan/libx52/releases/download/v${pkgver}/${pkgname}_${pkgver}.orig.tar.gz
+ sha256sums = 80a6141c64c94387d5593c8b4a9b5de5c22db16a0fa9cacaf1a2a80e8a3cd96e
pkgname = libx52
diff --git a/PKGBUILD b/PKGBUILD
index ee934c4..31af793 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,30 @@
# Maintainer: Nirenjan Krishnan <nirenjan@gmail.com>
pkgname=libx52
-_gitname=x52pro-linux
-pkgver=0.2.3_4_gb45dc59
+pkgver=0.3.0
pkgrel=1
pkgdesc="Application to control the MFD and LEDs of a Saitek X52/X52Pro HOTAS"
arch=('x86_64')
-url="https://github.com/nirenjan/x52pro-linux"
+url="https://github.com/nirenjan/libx52"
license=('GPL2')
depends=('libusb-1.0-0' 'libhidapi-hidraw0' 'libevdev2')
makedepends=('autoconf' 'automake' 'libtool' 'pkg-config' 'python3'
'gettext' 'autopoint' 'libusb-1.0-0-dev' 'libhidapi-dev'
- 'libevdev-dev' 'doxygen' 'rsync' 'libcmocka-dev' 'git')
-source=("git+https://github.com/nirenjan/x52pro-linux.git")
-sha256sums=('SKIP')
-
-pkgver() {
- cd ${srcdir}/${_gitname}
- git describe | cut -c2- | tr - _
-}
-
-prepare() {
- cd ${srcdir}/${_gitname}
- # nothing to see here
-}
+ 'libevdev-dev' 'doxygen' 'libcmocka-dev' 'git')
+source=("https://github.com/nirenjan/libx52/releases/download/v${pkgver}/${pkgname}_${pkgver}.orig.tar.gz")
+sha256sums=('80a6141c64c94387d5593c8b4a9b5de5c22db16a0fa9cacaf1a2a80e8a3cd96e')
build() {
- cd ${srcdir}/${_gitname}
- ./autogen.sh
- ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
+ cd ${srcdir}/${pkgname}-${pkgver}
+ mkdir build
+ cd build
+ ../configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--disable-silent-rules --disable-maintainer-mode
make
}
package() {
- cd ${srcdir}/${_gitname}
+ cd ${srcdir}/${pkgname}
make install DESTDIR="$pkgdir"
}