blob: 1fc1bdfbdfe92b459a4fd84c467c92209082fabc (
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
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Lukas "DerGeneralFluff" Lichten <lichtenrider@hotmail.de>
_pkgbase=hid-tmff2
pkgname="${_pkgbase}-dkms-git"
pkgver=r266.542f3f0
pkgrel=1
pkgdesc="Linux kernel module (DKMS) for Thrustmaster T300RS, T248, TX and TS-XW"
arch=('x86_64')
url="https://github.com/Kimplul/${_pkgbase}"
license=('GPL-3.0')
depends=('dkms')
makedepends=('git' 'make')
conflicts=("${_pkgbase}" "${_pkgbase}-dkms")
provides=("hid-tmff2-dkms=${pkgver}")
install="${pkgname}.install"
source=(
"git+${url}"
"${pkgname}.install"
)
#md5sums=(use 'updpkgsums')
md5sums=(
SKIP
SKIP
)
pkgver() {
cd "$srcdir/${_pkgbase}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${_pkgbase}"
git submodule update --init --recursive
}
package() {
cd $srcdir/${_pkgbase}
install -Dm644 dkms/dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
# Set name and version
sed -e "s/0.8/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
# Copy sources (including Makefile)
cp -r $srcdir/${_pkgbase}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}
|