# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=zfs pkgver=0.7.13 pkgrel=0 pkgdesc="ZFS for Linux" url="http://zfsonlinux.org" arch="all !armhf !armv7" license="CDDL" depends_dev="glib-dev e2fsprogs-dev util-linux-dev libtirpc-dev attr-dev" makedepends="$depends_dev automake autoconf libtool linux-headers" subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc $pkgname-libs $pkgname-dracut::noarch $pkgname-udev $pkgname-scripts $pkgname-utils-py:utils_py:noarch" source="https://github.com/zfsonlinux/zfs/releases/download/zfs-$pkgver/zfs-$pkgver.tar.gz zfs-import-should-be-before-swap.patch " prepare() { default_prepare autoreconf -vif } build() { cd "$builddir" export LIBS="$LIBS -lintl" ./configure --prefix=/usr \ --with-tirpc \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --with-config=user \ --with-udevdir=/lib/udev \ --disable-systemd make } package() { cd "$builddir" make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/share/initramfs-tools mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/ } dracut() { pkgdesc="$pkgdesc (dracut)" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/dracut "$subpkgdir"/usr/lib } udev() { pkgdesc="$pkgdesc (udev)" mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/udev "$subpkgdir"/lib } scripts() { pkgdesc="$pkgdesc (scripts)" mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/zfs "$subpkgdir"/usr/share } utils_py() { pkgdesc="$pkgdesc (python utils)" depends="python2" mkdir -p "$subpkgdir"/usr/bin for i in "$pkgdir"/usr/bin/*.py; do mv $i "$subpkgdir"/usr/bin done } sha512sums="457d8f110b68c9656194cd3738b216d5d807d680e5cfc6ed1f3cf5ebde67860476387c6b862ba3ba7f972d8945075963e6c325543ab84468e3eff5dbce68476e zfs-0.7.13.tar.gz d1632b7c7cc3997bf9617ea95a7554220f1d9dc4a10ca461fdcee7b5452f0334a01aa90166e20b657f4a752637022d548d0372fbcb0756d838f146031a8eee74 zfs-import-should-be-before-swap.patch"