Update Arch packages to make it Manjaro compatible

Add provides keyword to PKGBUILD with appropriate linux version.
This commit is contained in:
Alexey Andreev 2020-11-21 18:31:56 +03:00
parent 09405e7408
commit 6dfe5409ee
No known key found for this signature in database
GPG key ID: 39B40023519E246E
2 changed files with 7 additions and 3 deletions

View file

@ -2,7 +2,7 @@
pkgbase=linux-surface-lts
pkgver=4.19.157
pkgrel=1
pkgrel=2
pkgdesc='LTS Linux'
url="https://www.kernel.org/"
arch=(x86_64)
@ -99,6 +99,7 @@ _package() {
depends=(coreutils kmod initramfs)
optdepends=('crda: to set the correct wireless channels of your country'
'linux-firmware: firmware images needed for some devices')
provides=("linux=${pkgver}")
cd $_srcname
local kernver="$(<version)"
@ -131,6 +132,7 @@ _package() {
_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
provides=("linux-headers=${pkgver}")
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"

View file

@ -3,8 +3,9 @@
pkgbase=linux-surface
pkgver=5.9.8.arch1
pkgrel=1
pkgrel=2
pkgdesc='Linux'
_shortver=${pkgver%.*}
_fullver=${pkgver%.*}-${pkgver##*.}
_srctag=v${_fullver}
url="https://git.archlinux.org/linux.git/log/?h=$_srctag"
@ -96,7 +97,7 @@ _package() {
depends=(coreutils kmod initramfs)
optdepends=('crda: to set the correct wireless channels of your country'
'linux-firmware: firmware images needed for some devices')
provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE linux=${_shortver})
replaces=(virtualbox-guest-modules-arch wireguard-arch)
cd $_srcname
@ -127,6 +128,7 @@ _package() {
_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
provides=("linux-headers=${_shortver}")
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"