diff options
author | Yurii Kolesnykov | 2019-09-12 13:04:40 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2019-09-12 13:04:40 +0300 |
commit | 640f52142d6c7798761bb8957b3463e651d28b05 (patch) | |
tree | 2a166e4c3fdf7266be213526dada4adccf2db32c | |
download | aur-zfs-dkms-head-git.tar.gz |
init
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..63fa7359f26a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = zfs-dkms-head-git + pkgdesc = Kernel modules for the Zettabyte File System. + pkgver = 0.8.0.r270.gd66620681 + pkgrel = 1 + url = http://zfsonlinux.org/ + arch = x86_64 + groups = zfs-head-git + license = CDDL + makedepends = git + depends = zfs-utils-head-git + depends = lsb-release + depends = dkms + provides = zfs-git + provides = zfs + provides = zfs-headers + provides = spl + provides = spl-headers + conflicts = zfs-git + conflicts = zfs + conflicts = zfs-headers + conflicts = spl + conflicts = spl-headers + replaces = spl-dkms-git + source = git+https://github.com/zfsonlinux/zfs.git + sha256sums = SKIP + +pkgname = zfs-dkms-head-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e0498a7c8766 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.log +zfs +src +pkg +*.pkg.*
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..60c4049a9cae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Yurii Kolesnykov <root@yurikoles.com> +# Contributor: Jan Houben <jan@nexttrex.de> +# Contributor: Jesus Alvarez <jeezusjr at gmail dot com> + +pkgname="zfs-dkms-head-git" +pkgdesc="Kernel modules for the Zettabyte File System." +pkgver=0.8.0.r270.gd66620681 +pkgrel=1 +makedepends=("git") +arch=("x86_64") +url="http://zfsonlinux.org/" +source=("git+https://github.com/zfsonlinux/zfs.git") +sha256sums=("SKIP") +license=("CDDL") +depends=("zfs-utils-head-git" "lsb-release" "dkms") +provides=("zfs-git" "zfs" "zfs-headers" "spl" "spl-headers") +groups=("zfs-head-git") +conflicts=("zfs-git" "zfs" "zfs-headers" "spl" "spl-headers") +replaces=("spl-dkms-git") + +pkgver() { + cd "${srcdir}/zfs" + git describe --long --tags | sed 's/^zfs.//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +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 . +} |