blob: 208045e89af200bc4b130d6683328a6e2e6e5153 (
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
60
61
|
pkgname=ntfs3-dkms
pkgver=5.17
pkgrel=1
epoch=1
pkgdesc="NTFS3 is fully functional NTFS Read-Write driver. The driver works with NTFS versions up to 3.1."
arch=('any')
url='https://www.kernel.org/doc/html/latest/filesystems/ntfs3.html'
license=('GPL2')
depends=('dkms')
provides=('NTFS3-MODULE' 'ntfs3')
conflicts=('ntfs3')
options=('!strip' '!emptydirs')
_snapshot="linux-${pkgver}"
_archive="${_snapshot}.tar.gz"
_patches=("kernel-5."{12,14,15,16}"-backport.patch")
source=(
"${_archive}::https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/${_archive}"
"Makefile.patch"
"dkms.conf"
"${_patches[@]}"
)
sha256sums=(
'f58338c5b06314559a269afe70b33b9b0b75cc2fe5e8a537ac29f70caa6e489b'
'fd4cf0e2dc160efecc55d4ea99667669b870599e4e81be435ec2201381b7e2ac'
'9cb620446fc07ade4018637313a749e192d44a03e1f8b10529746730bacf6feb'
'44ce1edf931aec236d3dcb5a08441f4c03ccd60fdcd5ba949989c11938eeb371'
'869165f7b738a5fee41f1015d531459650d2c862fa2aaed252e692474d77c84c'
'26613999994cec08dfa4b53e9a5c1f97174ac2fc2b7f99c52b7ff7b88fdd1a45'
'8d397fd1c7d64835f712d47bf425732ae8abe8305aea570f1b53cfca9c8a97cf'
)
noextract=("${_archive}")
prepare() {
cd "${srcdir}"
tar --strip-components=2 -xf "${_archive}" "${_snapshot}/fs/ntfs3"
cd "ntfs3"
patch -i "${srcdir}/${source[1]}"
# For testing
# patch -i "${srcdir}/${_patches[-1]}"
# patch -i "${srcdir}/${_patches[-2]}"
# patch -i "${srcdir}/${_patches[-3]}"
# patch -i "${srcdir}/${_patches[-4]}"
}
package() {
local dest="${pkgdir}/usr/src/ntfs3-${pkgver}"
install -dm755 "${dest}"
cd "${srcdir}"
install -Dm644 -t "${dest}" "dkms.conf"
install -Dm644 -t "${dest}/patches" "${_patches[@]}"
cd "ntfs3"
cp -rt "${dest}" *
}
|