blob: 1afd7284796bb267060c4ce5b379f29346c9d850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Tomasz Pakula <forest10pl@gmail.com>
_reponame=hid-logitech-hidpp
pkgname=hidpp-logitech-g-pro-wheel-dkms-git
pkgver=0.1
pkgrel=1
pkgdesc="hid-logitech-hidpp with G Pro Racing Wheel PC/XBOX support"
arch=('x86_64')
url="https://github.com/Lawstorant/hid-logitech-hidpp"
license=('GPL2')
depends=(dkms)
makedepends=(git)
source=(git+https://github.com/Lawstorant/hid-logitech-hidpp)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_reponame"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/$_reponame"
find . -type f \( -name 'dkms.conf' -o -name '*.c' \) -exec sed -i "s/#VERSION#/$pkgver/" {} +
echo 'ccflags-y += -DDEBUG' >> "Kbuild"
echo "* Copying module into /usr/src..."
install -dm755 "${pkgdir}/usr/src/${_reponame}-${pkgver}"
cp -r ${srcdir}/$_reponame/* "${pkgdir}/usr/src/${_reponame}-${pkgver}"
}
|