# 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=2.1.6 pkgrel=1 makedepends=() arch=("x86_64") url="https://zfsonlinux.org/" source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-${pkgver}.tar.gz") sha256sums=("15339014f8d2131348eb937bf8893849806b6d2645ea607a18c7f117749dbd7a") 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") 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 }