# Maintainer: Jan Houben # Contributor: Jesus Alvarez # # This PKGBUILD was generated by the archzfs build scripts located at # # http://github.com/archzfs/archzfs # pkgname="zfs-dkms" pkgdesc="Kernel modules for the Zettabyte File System." pkgver=0.8.3 pkgrel=2 makedepends=() arch=("x86_64") url="https://zfsonlinux.org/" source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-${pkgver}.tar.gz" "linux-5.5-compat-blkg_tryget.patch") sha256sums=("545a4897ce30c2d2dd9010a0fdb600a0d3d45805e2387093c473efc03aa9d7fd" "daae58460243c45c2c7505b1d88dcb299ea7d92bcf3f41d2d30bc213000bb1da") license=("CDDL") depends=("zfs-utils=${pkgver}" "lsb-release" "dkms") provides=("zfs" "zfs-headers" "spl" "spl-headers") groups=("archzfs-dkms") conflicts=("zfs" "zfs-headers" "spl" "spl-headers") replaces=("spl-dkms") prepare() { cd "${srcdir}/zfs-${pkgver}" patch -Np1 -i ${srcdir}/linux-5.5-compat-blkg_tryget.patch } build() { cd "${srcdir}/zfs-${pkgver}" ./autogen.sh } package() { dkmsdir="${pkgdir}/usr/src/zfs-${pkgver}" install -d "${dkmsdir}" cp -a ${srcdir}/zfs-${pkgver}/. ${dkmsdir} cd "${dkmsdir}" find . -name ".git*" -print0 | xargs -0 rm -fr -- scripts/dkms.mkconf -v ${pkgver} -f dkms.conf -n zfs chmod g-w,o-w -R . }