blob: 2ce3de5fabe9d01d437f235521cd4fac0a97f0a2 (
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
|
# Maintainer: Marek Setnik <setnikmarek99@gmail.com>
_pkgbase=t150_driver
pkgname="${_pkgbase}-dkms-git"
pkgver=0.7c.r143.72cd2b5
pkgrel=1
pkgdesc="Thrustmaster T150 Force Feedback Wheel Linux drivers"
arch=('x86_64')
url="https://github.com/scarburato/${_pkgbase}"
license=('GPL-2.0')
depends=('dkms')
makedepends=('git')
provides=("t150_driver-dkms=${pkgver}")
conflicts=("t150_driver-dkms")
install=$_pkgbase.install
source=("git+${url}")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgbase"
printf "0.7c.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
mv "${_pkgbase}/dkms_make.mak" "${_pkgbase}/Makefile"
mkdir "hid-tminit"
git clone https://github.com/scarburato/hid-tminit "${_pkgbase}/hid-tminit"
install -Dm644 ${_pkgbase}/dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
cp -r ${_pkgbase}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
install -D "${_pkgbase}/files/etc/udev/rules.d/10-t150.rules" -t "$pkgdir/usr/lib/udev/rules.d/"
}
|