blob: cb337bdc97946baa215db586c323cc23802ae646 (
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
|
# Maintainer: loathingkernel
# Contributor: Torge Matthies <openglfreak at googlemail dot com>
# Contributor: Krzysztof Bogacki <krzysztof dot bogacki at leancode dot pl>
pkgbase=ntsync
pkgname=(ntsync-dkms ntsync-header ntsync-common)
pkgver=6.8.3
pkgrel=1
pkgdesc="NT synchronization primitive driver"
arch=(x86_64)
url='https://repo.or.cz/linux/zf.git/shortlog/refs/heads/ntsync5'
license=('GPL2')
_commit=67ecf76b95fcaf9a70e54b0d25b485f4e135e439
source=("ntsync.c-$_commit::https://repo.or.cz/linux/zf.git/blob_plain/$_commit:/drivers/misc/ntsync.c"
"ntsync.h-$_commit::https://repo.or.cz/linux/zf.git/blob_plain/$_commit:/include/uapi/linux/ntsync.h"
'ntsync.conf'
'99-ntsync.rules'
'Makefile'
'dkms.conf')
sha256sums=('8292a99ced2750c6dca31cb24c7ea087c70ab14c355a4902150ca8cd7453aa50'
'5319abf8ed063f83bbdaa739c72b1077c28f89f00698a2ffc073b0dd9ec3967e'
'c19771ae86e7df179f6b2f4a2837d3f0cbbbba7b32baef41a3c27120c760d78f'
'ce5221146a19206ba043211db8f27143a82f9224c0aff24a0b584b7268fcb994'
'834a7b4c9a67a44f2cf593bf259918ea12b0c0eeee7862ed4f9fd268076171cf'
'e81694fa952711f1b74f02b6a64ac1e90c229f93c740e4f97df5692f3af99609')
prepare() {
sed -i -e "s/@PACKAGE_VERSION@/$pkgver/g" "$srcdir/dkms.conf"
}
package_ntsync-dkms() {
pkgdesc+=" - out-of-tree module"
depends=(dkms ntsync-common)
optdepends=(
'ntsync-header: Allow wine to be compiled with ntsync support'
)
provides=(NTSYNC-MODULE)
conflicts=(ntsync)
install -Dm644 "$srcdir/Makefile" "$pkgdir/usr/src/$pkgbase-$pkgver/Makefile"
install -Dm644 "$srcdir/ntsync.h-$_commit" "$pkgdir/usr/src/$pkgbase-$pkgver/include/uapi/linux/ntsync.h"
install -Dm644 "$srcdir/ntsync.c-$_commit" "$pkgdir/usr/src/$pkgbase-$pkgver/drivers/misc/ntsync.c"
install -Dm644 "$srcdir/dkms.conf" "$pkgdir/usr/src/$pkgbase-$pkgver/dkms.conf"
}
package_ntsync-header() {
pkgdesc+=" - linux api header file"
install -Dm644 "$srcdir/ntsync.h-$_commit" "$pkgdir/usr/include/linux/ntsync.h"
}
package_ntsync-common() {
pkgdesc+=" - common files"
provides=(ntsync-udev-rule)
conflicts=(ntsync-udev-rule)
replaces=(ntsync-udev-rule)
install -Dm644 "$srcdir/ntsync.conf" "$pkgdir/usr/lib/modules-load.d/ntsync.conf"
install -Dm644 "$srcdir/99-ntsync.rules" "$pkgdir/usr/lib/udev/rules.d/99-ntsync.rules"
}
|