add dkms and linux-headers

This commit is contained in:
Ohio2 2021-08-25 14:48:48 +02:00
parent bdef812329
commit 674ae84ccf
4 changed files with 22 additions and 0 deletions

4
dkms/build Executable file
View file

@ -0,0 +1,4 @@
git clone https://github.com/dell/dkms.git
cd dkms
make DESTDIR="$1" install

5
dkms/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="2.8.5"
pkg_config_name="dkms"
pkg_config_makedepends=""
pkg_config_depends="linux linux-headers"

8
linux-headers/build Executable file
View file

@ -0,0 +1,8 @@
cd /usr/src/linux
make HOSTCC="$CC" headers
find usr/include -name \*.h -type f | while read -r file; do
mkdir -p "$1/${file%/*}"
cp -f "$file" "$1/$file"
done

5
linux-headers/package Executable file
View file

@ -0,0 +1,5 @@
pkg_config_deploy=true
pkg_config_ver="9999"
pkg_config_name="linux-headers"
pkg_config_makedepends="linux"
pkg_config_depends=""