blob: 9ac3346295452a6c2ab5c1ad4d6c1fa9cd5e3333 (
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
30
31
32
33
34
35
36
37
|
# Maintainer: Tomasz Pakula <forest10pl@gmail.com>
_reponame=hid-logitech-hidpp
pkgname=hidpp-logitech-g-pro-wheel-dkms-git
pkgver=0.1
pkgrel=4
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
gcc
glibc
)
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}"
}
|