mirror of
https://aur.archlinux.org/zfs-linux-hardened.git
synced 2025-06-03 06:07:22 +02:00
pkgver function
This commit is contained in:
parent
f70f5ad215
commit
3a143d2827
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,5 +1,3 @@
|
|||||||
*.tar.xz
|
src/
|
||||||
|
pkg/
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.tar.zst
|
|
||||||
*.sig
|
|
||||||
*.log
|
|
||||||
|
18
PKGBUILD
18
PKGBUILD
@ -1,10 +1,12 @@
|
|||||||
# Maintainer: Jan Houben <jan@nexttrex.de>
|
# Maintainer: Jan Houben <jan@nexttrex.de>
|
||||||
# Contributor: Jesus Alvarez <jeezusjr at gmail dot com>
|
# Contributor: Jesus Alvarez <jeezusjr at gmail dot com>
|
||||||
#
|
#
|
||||||
# This PKGBUILD was generated by the archzfs build scripts located at
|
# This PKGBUILD was originally generated by the archzfs build scripts located at
|
||||||
#
|
#
|
||||||
# http://github.com/archzfs/archzfs
|
# http://github.com/archzfs/archzfs
|
||||||
#
|
#
|
||||||
|
# Updates are currently manual
|
||||||
|
#
|
||||||
# ! WARNING !
|
# ! WARNING !
|
||||||
#
|
#
|
||||||
# The archzfs packages are kernel modules, so these PKGBUILDS will only work with the kernel package they target. In this
|
# The archzfs packages are kernel modules, so these PKGBUILDS will only work with the kernel package they target. In this
|
||||||
@ -17,12 +19,11 @@
|
|||||||
#
|
#
|
||||||
pkgbase="zfs-linux-hardened"
|
pkgbase="zfs-linux-hardened"
|
||||||
pkgname=("zfs-linux-hardened" "zfs-linux-hardened-headers")
|
pkgname=("zfs-linux-hardened" "zfs-linux-hardened-headers")
|
||||||
_zfsver="2.3.2"
|
|
||||||
_kernelver="6.13.12.hardened1-2"
|
|
||||||
_kernelver_full="6.13.12.hardened1-2"
|
|
||||||
_extramodules="${_kernelver/.hardened/-hardened}-hardened"
|
|
||||||
|
|
||||||
pkgver="${_zfsver}_$(echo ${_kernelver} | sed s/-/./g)"
|
pkgver="2.3.2_6.13.12.hardened1.2"
|
||||||
|
_zfsver="$(echo "$pkgver" | sed 's/_.*$//')"
|
||||||
|
_kernelver="$(echo "$pkgver" | sed 's/^.*_\(.*\)\.\([0-9]*\)$/\1-\2/')"
|
||||||
|
_extramodules="${_kernelver/.hardened/-hardened}-hardened"
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
makedepends=("linux-hardened-headers=${_kernelver}")
|
makedepends=("linux-hardened-headers=${_kernelver}")
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
@ -32,6 +33,11 @@ sha256sums=('80da628a9543ec3355bf410617450e167706948ceb287541455a1b8d87b8758a')
|
|||||||
license=("CDDL")
|
license=("CDDL")
|
||||||
depends=("kmod" "zfs-utils=${_zfsver}" "linux-hardened=${_kernelver}")
|
depends=("kmod" "zfs-utils=${_zfsver}" "linux-hardened=${_kernelver}")
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
echo -n "${_zfsver}_"
|
||||||
|
pacman -Si linux-hardened | sed -n 's/Version *: *\(.*\)-\([0-9]*\)/\1.\2/p'
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/zfs-${_zfsver}"
|
cd "${srcdir}/zfs-${_zfsver}"
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user