diff --git a/PKGBUILD b/PKGBUILD index 4b7bec8..4800f5e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,11 +2,11 @@ # Maintainer: Philip Müller _linuxprefix=linux-xanmod-lts -_extramodules=$(find /usr/lib/modules -type d -iname 6.1.74*xanmod* | rev | cut -d "/" -f1 | rev) +_kernver="$(cat /usr/src/${_linuxprefix}//build/version)" pkgname="$_linuxprefix-zfs" pkgver=2.2.2 -pkgrel=61741 +pkgrel=61761 pkgdesc='Kernel modules for the Zettabyte File System.' arch=('x86_64') url="http://zfsonlinux.org/" @@ -18,13 +18,11 @@ provides=("zfs=${pkgver}" "ZFS-MODULE=${pkgver}") options=('!strip') build() { - _kernver=$(find /usr/lib/modules -type d -iname 6.1.74*xanmod* | rev | cut -d "/" -f1 | rev) fakeroot dkms build --dkmstree "${srcdir}" -m zfs/${pkgver} -k ${_kernver} } package() { - _kernver=$(find /usr/lib/modules -type d -iname 6.1.74*xanmod* | rev | cut -d "/" -f1 | rev) - install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 zfs/${pkgver}/${_kernver}/${CARCH}/module/* + install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 zfs/${pkgver}/${_kernver}/${CARCH}/module/* # compress each module individually find "$pkgdir" -name '*.ko' -exec xz -T1 {} + diff --git a/zfs.install b/zfs.install deleted file mode 100644 index 917133e..0000000 --- a/zfs.install +++ /dev/null @@ -1,13 +0,0 @@ -EXTRAMODULES=$(find /usr/lib/modules -type d -iname 6.1.74*xanmod* | rev | cut -d "/" -f1 | rev) - -post_install() { - depmod $(find /usr/lib/modules -type d -iname 6.1.74*xanmod* | rev | cut -d "/" -f1 | rev) -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -}