# # Maintainer: bjin # Maintainer: Iacopo Isimbaldi # pkgbase="zfs-dkms" pkgname=("zfs-dkms" "zfs-utils") pkgver=0.6.5.3 pkgrel=2 license=('CDDL') makedepends=("git" "spl-dkms=${pkgver}") arch=("i686" "x86_64") url="http://zfsonlinux.org/" source=("git+https://github.com/zfsonlinux/zfs.git#tag=zfs-${pkgver}" "zfs-utils.bash-completion-r1" "zfs-utils.initcpio.install" "zfs-utils.initcpio.hook") md5sums=('SKIP' '9ddb0c8a94861f929d0fa741fdc49950' '9ef4841abb85dee611828cc7e6f5c6fe' '62ba32c6853c315ff231c396cf8bfdbb') build() { cd "${srcdir}/zfs" ./autogen.sh ./configure --prefix=/usr \ --sysconfdir=/etc \ --sbindir=/usr/bin \ --with-mounthelperdir=/usr/bin \ --libdir=/usr/lib \ --datadir=/usr/share \ --includedir=/usr/include \ --with-udevdir=/lib/udev \ --libexecdir=/usr/lib/zfs \ --with-config=user make } package_zfs-dkms() { pkgdesc="Kernel modules for the Zettabyte File System." depends=("spl-dkms=${pkgver}" "zfs-utils=${pkgver}-${pkgrel}" "dkms") optdepends=("mkinitcpio-dkms: Generate initramfs with zfs modules automatically") provides=("zfs") conflicts=("zfs-git" "zfs-lts") install=zfs.install dkmsdir="${pkgdir}/usr/src/zfs-${pkgver}" install -d "${dkmsdir}" cd "${srcdir}/zfs" git archive --format=tar HEAD | tar -x -C "${dkmsdir}" cd "${dkmsdir}" ./autogen.sh scripts/dkms.mkconf -v ${pkgver} -f dkms.conf -n zfs chmod g-w,o-w -R . } package_zfs-utils() { pkgdesc="Kernel module support files for the Zettabyte File System." conflicts=("zfs-utils-git" "zfs-utils-lts") cd "${srcdir}/zfs" make DESTDIR="${pkgdir}" install # Remove uneeded files rm -r "${pkgdir}"/etc/init.d rm -r "${pkgdir}"/usr/lib/dracut # move module tree /lib -> /usr/lib cp -r "${pkgdir}"/{lib,usr} rm -r "${pkgdir}"/lib install -D -m644 "${srcdir}"/zfs-utils.initcpio.hook "${pkgdir}"/usr/lib/initcpio/hooks/zfs install -D -m644 "${srcdir}"/zfs-utils.initcpio.install "${pkgdir}"/usr/lib/initcpio/install/zfs install -D -m644 "${srcdir}"/zfs-utils.bash-completion-r1 "${pkgdir}"/usr/share/bash-completion/completions/zfs }