You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zfs-dkms/PKGBUILD

57 lines
2.1 KiB

# Maintainer: Jan Houben <jan@nexttrex.de>
# Contributor: Jesus Alvarez <jeezusjr at gmail dot com>
#
# This PKGBUILD was generated by the archzfs build scripts located at
#
# http://github.com/archzfs/archzfs
#
pkgname="zfs-dkms"
pkgdesc="Kernel modules for the Zettabyte File System."
pkgver=0.8.3
pkgrel=4
makedepends=()
arch=("x86_64")
url="https://zfsonlinux.org/"
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-${pkgver}.tar.gz"
"linux-5.5-compat-blkg_tryget.patch"
"linux-5.6-compat-struct-proc_ops.patch"
"linux-5.6-compat-timestamp_truncate.patch"
"linux-5.6-compat-ktime_get_raw_ts64.patch"
"linux-5.6-compat-time_t.patch")
sha256sums=("545a4897ce30c2d2dd9010a0fdb600a0d3d45805e2387093c473efc03aa9d7fd"
"daae58460243c45c2c7505b1d88dcb299ea7d92bcf3f41d2d30bc213000bb1da"
"05ca889a89b1e57d55c1b7d4d3013398a3e5a69d0fad27278aad701f0bb6e802"
"5ad4393b334a8f685212f47b44e98dc468c70214ee5dbbab24cc95c4f310ae39"
"7c6ebee72d864160b376fc18017c81f499f177b7d9265f565de859139805a277"
"06f7ade5adcbfe77cb234361f8b2aca6d6e78fcd136da6d3a70048b5e92c62bb")
license=("CDDL")
depends=("zfs-utils=${pkgver}" "lsb-release" "dkms")
provides=("zfs" "zfs-headers" "spl" "spl-headers")
groups=("archzfs-dkms")
conflicts=("zfs" "zfs-headers" "spl" "spl-headers")
replaces=("spl-dkms")
prepare() {
cd "${srcdir}/zfs-${pkgver}"
patch -Np1 -i ${srcdir}/linux-5.5-compat-blkg_tryget.patch
patch -Np1 -i ${srcdir}/linux-5.6-compat-struct-proc_ops.patch
patch -Np1 -i ${srcdir}/linux-5.6-compat-timestamp_truncate.patch
patch -Np1 -i ${srcdir}/linux-5.6-compat-time_t.patch
patch -Np1 -i ${srcdir}/linux-5.6-compat-ktime_get_raw_ts64.patch
}
build() {
cd "${srcdir}/zfs-${pkgver}"
./autogen.sh
}
package() {
dkmsdir="${pkgdir}/usr/src/zfs-${pkgver}"
install -d "${dkmsdir}"
cp -a ${srcdir}/zfs-${pkgver}/. ${dkmsdir}
cd "${dkmsdir}"
find . -name ".git*" -print0 | xargs -0 rm -fr --
scripts/dkms.mkconf -v ${pkgver} -f dkms.conf -n zfs
chmod g-w,o-w -R .
}