# Maintainer: Jesus Alvarez # # This PKGBUILD was generated by the archzfs build scripts located at # # http://github.com/archzfs/archzfs # # pkgname="zfs-dkms-git" pkgdesc="Kernel modules for the Zettabyte File System." pkgver=2017.12.18.r3214.bbffb59ef pkgrel=3 makedepends=("git") arch=("x86_64") url="http://zfsonlinux.org/" source=("git+https://github.com/zfsonlinux/zfs.git#commit=bbffb59efc49baba1d131d497202e8cda0068c3d") sha256sums=("SKIP") license=("CDDL") depends=("spl-dkms-git" "zfs-utils-common-git=2017.12.18.r3214.bbffb59ef") install=zfs.install provides=("zfs") groups=("archzfs-dkms-git") conflicts=('zfs-dkms' 'zfs-archiso-linux' '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-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" ./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 . }