summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ad8eeb27c46bac4c2dd9e9dbb0f83023ffe57dd (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
# Maintainer: Jan Houben <jan@nexttrex.de>
# Contributor: Jesus Alvarez <jeezusjr at gmail dot com>
#
# This PKGBUILD was generated by the archzfs build scripts located at
#
# http://github.com/archzfs/archzfs
#
pkgname="zfs-dkms-git"
_commit='afc8f0a6ffb4dd2dd5e17abc39e035eb7c7bcdc8'
pkgdesc="Kernel modules for the Zettabyte File System."

pkgver=2019.09.18.r5411.gafc8f0a6f
pkgrel=1
makedepends=("git")
arch=("x86_64")
url="https://zfsonlinux.org/"
source=("git+https://github.com/zfsonlinux/zfs.git#commit=${_commit}"
        "linux-5.3-compat-rw_semaphore-owner.patch"
        "linux-5.3-compat-retire-rw_tryupgrade.patch"
        "linux-5.3-compat-Makefile-subdir-m-no-longer-supported.patch")
sha256sums=("SKIP"
            "c65c950abda42fb91fb99c6c916a50720a522c53e01a872f9310a4719bae9e2a"
            "19f798a29c00874874751880f1146c5849b8ebdb6233d8ae923f9fdd4661de19"
            "6c4627875dd1724f64a196ea584812c99635897dc31cb23641f308770289059a")
license=("CDDL")
depends=("zfs-utils-git=${pkgver}" "lsb-release" "dkms")
provides=("zfs" "zfs-headers" "spl" "spl-headers")
groups=("archzfs-dkms-git")
conflicts=("zfs" "zfs-headers" "spl" "spl-headers")
replaces=("spl-dkms-git")

build() {
    cd "${srcdir}/zfs"
    ./autogen.sh
}

package() {
    dkmsdir="${pkgdir}/usr/src/zfs-git"
    install -d "${dkmsdir}"
    cp -a ${srcdir}/zfs/. ${dkmsdir}
    cd "${dkmsdir}"
    find . -name ".git*" -print0 | xargs -0 rm -fr --
    scripts/dkms.mkconf -v git -f dkms.conf -n zfs
    chmod g-w,o-w -R .
}