blob: e1872f2c83ecfeac16b826cb63fc3d61599388c5 (
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
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: camb
# Written with much help from https://github.com/tsduck/dektec-dkms
pkgname=dektec-dkms
pkgver=2023.08.0
pkgrel=1
pkgdesc="DekTec DKMS"
arch=('i686' 'x86_64')
url="https://www.dektec.com/"
license=('GPL2')
depends=('dkms')
source=("${url}/products/SDK/DTAPI/Downloads/LinuxSDK_v${pkgver}.tar.gz"
'linux-3.18-dma-changes.patch'
'linux-3.18-netif-changes.patch'
'linux-6.2+-prefix-symbols.patch'
'linux-6.2+-prefix-symbols.2022.06.0.patch'
'linux-6.3+-vm_flags_set.patch'
'dkms.conf'
'Makefile')
md5sums=('59f6a7ef2f735aad2be649767d2725ea'
'732658890611d0c44c9a69e0e7832936'
'7bcb9def37608558fbdef4053af96792'
'8c4c8d92a5840ad03c5f6e0bcd27500b'
'5817a31229c1f12ea0b3c6fc3fea05fa'
'facbf2c909bded3ca94c93360f02a7e2'
'539fb620aadf7fcab3f29156b6e8bdc4'
'e0a9e12767006053c4e71ecd49dd2769')
prepare() {
# Dropped the linux-3.18 patches as they don't apply anymore and don't
# seem to be needed.
# If you're going to go back in versions you may need them.
# They're still in the repo and still checksumed so you should be good to go
# putting the patch commands back in here
# If you're going back in versions, use the 2022.06.0 version of the prefix-symbols
# patch. It is also still in the repo and checksumed so you're fine to use.
patch -d LinuxSDK -p0 -i "${srcdir}"/linux-6.2+-prefix-symbols.patch
# If you're going back to 2022.12.2 uncomment the following line to use the vm_flags
# helpers.
# patch -d LinuxSDK -p0 -i "${srcdir}"/linux-6.3+-vm_flags_set.patch
sed -e"s/@PKGVER@/${pkgver}/" -i "${srcdir}"/dkms.conf
}
package() {
cd "${srcdir}"
mkdir -p "${pkgdir}"/usr/src/${pkgname}-${pkgver}/
# Copy sources (including Makefile and dkms.conf
cp -L -r Makefile dkms.conf LinuxSDK/* "${pkgdir}"/usr/src/${pkgname}-${pkgver}/
install -D -t "${pkgdir}"/etc/udev/rules.d/ -m 644 -o root -g root \
./LinuxSDK/Drivers/Dta/Source/Linux/51-dta.rules \
./LinuxSDK/Drivers/Dtu/Source/Linux/51-dtu.rules \
./LinuxSDK/Drivers/DtPcie/Source/Linux/51-dtpcie.rules
}
|