-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
37 lines (29 loc) · 1.14 KB
/
PKGBUILD
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
# Maintainer: Bernhard Landauer <[email protected]>
# Maintainer: Philip Müller <philm[at]manjaro[dot]org>
_linuxprefix=linux-xanmod-lts
pkgname="${_linuxprefix}-zfs"
pkgver=2.2.6
pkgrel=66601
pkgdesc='Kernel modules for the Zettabyte File System.'
arch=('x86_64')
url="http://zfsonlinux.org/"
license=('CDDL-1.0')
groups=("${_linuxprefix}-extramodules")
depends=("${_linuxprefix}" "zfs-utils=${pkgver}")
makedepends=("${_linuxprefix}-headers" "zfs-dkms=${pkgver}")
provides=("zfs=${pkgver}" "ZFS-MODULE=${pkgver}")
options=('!strip')
build() {
_kernver="$(cat /usr/src/${_linuxprefix}/version)"
_kernver="$(cat /usr/src/${_linuxprefix}/version)"
fakeroot dkms build --dkmstree "${srcdir}" -m zfs/${pkgver} -k ${_kernver}
}
package() {
_kernver="$(cat /usr/src/${_linuxprefix}/version)"
install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 zfs/${pkgver}/${_kernver}/${CARCH}/module/*
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
# systemd module loading
printf '%s\n' spl zfs |
install -Dm 644 /dev/stdin "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf"
}