# Maintainer: Eli Schwartz # Contributor: Iacopo Isimbaldi pkgname=zfs-dkms pkgver=0.7.11 pkgrel=2 pkgdesc="Kernel modules for the Zettabyte File System." arch=('any') url="https://zfsonlinux.org/" license=('CDDL') depends=("spl-dkms=${pkgver}" "zfs-utils=${pkgver}" 'dkms') makedepends=('git') provides=("${pkgname%-dkms}") source=("git+https://github.com/zfsonlinux/zfs.git#tag=zfs-${pkgver}?signed" "0001-only-build-the-module-in-dkms.conf.patch") sha256sums=('SKIP' '780e590383fb00389c5e02ac15709b7a476d9e07d3c4935ed9eb67c951a88409') validpgpkeys=('4F3BA9AB6D1F8D683DC2DFB56AD860EED4598027' # Tony Hutter (GPG key for signing ZFS releases) 'C33DF142657ED1F7C328A2960AB9E991C6AF658B') # Brian Behlendorf prepare() { cd "${srcdir}"/${pkgname%-dkms} patch -p1 -i ../0001-only-build-the-module-in-dkms.conf.patch # remove unneeded sections from module build sed -ri "/AC_CONFIG_FILES/,/]\)/{ /AC_CONFIG_FILES/n /]\)/n /^\s*(module\/.*)?(${pkgname%-dkms}.release|Makefile)/!d }" configure.ac autoreconf -fi } package() { cd "${srcdir}"/${pkgname%-dkms} dkmsdir="${pkgdir}/usr/src/${pkgname%-dkms}-${pkgver}" install -d "${dkmsdir}"/{config,scripts} cp -a configure Makefile.in META ${pkgname%-dkms}_config.h.in ${pkgname%-dkms}.release.in include/ module/ "${dkmsdir}"/ cp config/config.* config/missing config/*sh "${dkmsdir}"/config/ cp scripts/enum-extract.pl scripts/dkms.postbuild "${dkmsdir}"/scripts/ ./scripts/dkms.mkconf -n ${pkgname%-dkms} -v ${pkgver} -f "${dkmsdir}"/dkms.conf }