Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refactor linux-$pkgsuffix pair into variable #271

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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