summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIacopo Isimbaldi2015-07-08 19:22:42 +0200
committerIacopo Isimbaldi2015-07-08 19:22:42 +0200
commitcf36155b4453a450ac95f96914c46f0bb4194e05 (patch)
treeb922cfba497440acbdd1b607039b81274a8e63d0 /PKGBUILD
downloadaur-cf36155b4453a450ac95f96914c46f0bb4194e05.tar.gz
AUR4 Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD83
1 files changed, 83 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..479d70e3c18
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,83 @@
+#
+# Maintainer: isiachi <isiachi@rhyeworld.it>
+#
+
+pkgbase="zfs-dkms-git"
+pkgname=("zfs-dkms-git" "zfs-utils-dkms-git")
+pkgver=0.6.4.2
+pkgrel=1
+license=('CDDL')
+makedepends=("git")
+arch=("i686" "x86_64")
+url="http://zfsonlinux.org/"
+source=("git+https://github.com/zfsonlinux/zfs.git"
+ "zfs-utils.bash-completion-r1"
+ "zfs-utils.initcpio.install"
+ "zfs-utils.initcpio.hook")
+md5sums=('SKIP'
+ '9ddb0c8a94861f929d0fa741fdc49950'
+ '9ef4841abb85dee611828cc7e6f5c6fe'
+ '62ba32c6853c315ff231c396cf8bfdbb')
+#install=zfs.install
+
+_dirver="${pkgver}"
+_gittag="zfs-${pkgver}"
+
+prepare() {
+ cd "${srcdir}/zfs"
+
+ git checkout ${_gittag}
+}
+
+build() {
+ cd "${srcdir}/zfs"
+ ./autogen.sh
+ scripts/dkms.mkconf -v ${_dirver} -f dkms.conf -n zfs
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/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-git() {
+ pkgdesc="Kernel modules for the Zettabyte File System."
+ depends=("spl-dkms-git=${pkgver}-${pkgrel}" "zfs-utils-dkms-git=${pkgver}-${pkgrel}" "dkms")
+ provides=("zfs-git")
+ conflicts=("zfs-lts")
+ install=zfs.install
+
+ install -d ${pkgdir}/usr/src
+ cp -a ${srcdir}/zfs ${pkgdir}/usr/src/zfs-${_dirver}
+ rm -rf ${pkgdir}/usr/src/zfs-${_dirver}/.git
+ rm -f ${pkgdir}/usr/src/zfs-${_dirver}/.gitignore
+}
+
+package_zfs-utils-dkms-git() {
+ pkgdesc="Kernel module support files for the Zettabyte File System."
+ depends=("spl-dkms-git=${pkgver}-${pkgrel}")
+ provides=("zfs-utils-git")
+ conflicts=("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
+ # rm -r "${pkgdir}"/sbin
+
+ 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
+}