Skip to content

Commit

Permalink
fix: refactor linux- pair into variable (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin authored Jul 20, 2024
1 parent 4b86f35 commit bc3a34d
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 66 deletions.
12 changes: 6 additions & 6 deletions linux-cachyos-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -692,11 +692,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -713,7 +713,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -727,7 +727,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-deckify/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -694,11 +694,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -715,7 +715,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -729,7 +729,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-echo/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -692,11 +692,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -713,7 +713,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -727,7 +727,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -692,11 +692,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -713,7 +713,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -727,7 +727,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-hardened/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -691,11 +691,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -712,7 +712,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -726,7 +726,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-lts/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -760,11 +760,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -781,7 +781,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -795,7 +795,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -692,11 +692,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -714,7 +714,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -729,7 +729,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-rt-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -692,11 +692,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -713,7 +713,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -727,7 +727,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
12 changes: 6 additions & 6 deletions linux-cachyos-sched-ext/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ _package() {

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=('pahole' linux-${pkgsuffix} )
depends=('pahole' ${pkgbase} )

cd ${srcdir}/${_srcname}
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
Expand Down Expand Up @@ -692,11 +692,11 @@ _package-headers() {

_package-dbg(){
pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel"
depends=(linux-${pkgsuffix}-headers)
depends=(${pkgbase}-headers)

cd "${srcdir}/${_srcname}"
mkdir -p "$pkgdir/usr/src/debug/linux-${pkgsuffix}"
install -Dt "$pkgdir/usr/src/debug/linux-${pkgsuffix}" -m644 vmlinux
mkdir -p "$pkgdir/usr/src/debug/${pkgbase}"
install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux
}

_package-zfs(){
Expand All @@ -713,7 +713,7 @@ _package-zfs(){
}

_package-nvidia(){
pkgdesc="nvidia module of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia module of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia-open")
Expand All @@ -727,7 +727,7 @@ _package-nvidia(){
}

_package-nvidia-open(){
pkgdesc="nvidia open modules of ${_nv_ver} driver for the linux-$pkgsuffix kernel"
pkgdesc="nvidia open modules of ${_nv_ver} driver for the ${pkgbase} kernel"
depends=("$pkgbase=$_kernver" "nvidia-utils=${_nv_ver}" "libglvnd")
provides=('NVIDIA-MODULE')
conflicts=("$pkgbase-nvidia")
Expand Down
Loading

0 comments on commit bc3a34d

Please sign in to comment.