# 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.7.10 pkgrel=1 makedepends=() arch=("x86_64") url="http://zfsonlinux.org/" source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-${pkgver}.tar.gz") sha256sums=("9343650175ccba2f61379c7dbc66ecbda1059e1ff95bc1fe6be4f33628cce477") license=("CDDL") depends=('spl-dkms' "zfs-utils-common=${pkgver}" "lsb-release" "dkms") provides=("zfs") groups=("archzfs-dkms") conflicts=('zfs-dkms-git' 'zfs-archiso-linux' 'zfs-archiso-linux-git' 'zfs-linux-hardened' 'zfs-linux-hardened-git' 'zfs-linux-lts' 'zfs-linux-lts-git' 'zfs-linux' 'zfs-linux-git' 'zfs-linux-vfio' 'zfs-linux-vfio-git' 'zfs-linux-zen' 'zfs-linux-zen-git' 'zfs-archiso-linux-headers' 'zfs-archiso-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers' 'zfs-linux-lts-headers' 'zfs-linux-lts-git-headers' 'zfs-linux-headers' 'zfs-linux-git-headers' 'zfs-linux-vfio-headers' 'zfs-linux-vfio-git-headers' 'zfs-linux-zen-headers' 'zfs-linux-zen-git-headers' ) build() { cd "${srcdir}/zfs-${pkgver}" ./autogen.sh } package() { dkmsdir="${pkgdir}/usr/src/zfs-0.7.10" install -d "${dkmsdir}" cp -a ${srcdir}/zfs-${pkgver}/. ${dkmsdir} cd "${dkmsdir}" find . -name ".git*" -print0 | xargs -0 rm -fr -- scripts/dkms.mkconf -v 0.7.10 -f dkms.conf -n zfs chmod g-w,o-w -R . }