Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 4, 2023
1 parent 03095c0 commit b8f5811
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Maintainer: Philip Müller <philm[at]manjaro[dot]org>

_linuxprefix=linux-xanmod-lts
_extramodules=$(find /usr/lib/modules -type d -iname 5.15.95*xanmod* | rev | cut -d "/" -f1 | rev)
_extramodules=$(find /usr/lib/modules -type d -iname 6.1.15*xanmod* | rev | cut -d "/" -f1 | rev)

pkgname="$_linuxprefix-zfs"
pkgver=2.1.9
pkgrel=515951
pkgrel=61151
pkgdesc='Kernel modules for the Zettabyte File System.'
arch=('x86_64')
url="http://zfsonlinux.org/"
Expand All @@ -16,20 +16,23 @@ depends=("$_linuxprefix" "kmod" "zfs-utils=${pkgver}")
makedepends=("$_linuxprefix-headers")
provides=("zfs=${pkgver}")
install=zfs.install
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-${pkgver}.tar.gz"{,.asc})
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-${pkgver}.tar.gz"{,.asc}
'https://github.com/andrewc12/openzfs/commit/68b1eba.patch')
sha256sums=('6b172cdf2eb54e17fcd68f900fab33c1430c5c59848fa46fab83614922fe50f6'
'SKIP')
'SKIP'
'2b6996a310893d63f79fa32f8be2bd54f0cbe2a17c993c32c461cd04d1e81ae8')
validpgpkeys=('4F3BA9AB6D1F8D683DC2DFB56AD860EED4598027' # Tony Hutter (GPG key for signing ZFS releases) <[email protected]>
'C33DF142657ED1F7C328A2960AB9E991C6AF658B') # Brian Behlendorf <[email protected]>

prepare() {
cd "zfs-${pkgver}"

./autogen.sh
sed -i "s|\$(uname -r)|${_kernver}|g" configure
}

build() {
_kernver=$(find /usr/lib/modules -type d -iname 5.15.95*xanmod* | rev | cut -d "/" -f1 | rev)
_kernver=$(find /usr/lib/modules -type d -iname 6.1.15*xanmod* | rev | cut -d "/" -f1 | rev)

cd "zfs-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --libdir=/usr/lib \
Expand Down
4 changes: 2 additions & 2 deletions zfs.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
EXTRAMODULES=$(find /usr/lib/modules -type d -iname 5.15.95*xanmod* | rev | cut -d "/" -f1 | rev)
EXTRAMODULES=$(find /usr/lib/modules -type d -iname 6.1.15*xanmod* | rev | cut -d "/" -f1 | rev)

post_install() {
depmod $(find /usr/lib/modules -type d -iname 5.15.95*xanmod* | rev | cut -d "/" -f1 | rev)
depmod $(find /usr/lib/modules -type d -iname 6.1.15*xanmod* | rev | cut -d "/" -f1 | rev)
}

post_upgrade() {
Expand Down

0 comments on commit b8f5811

Please sign in to comment.