Skip to content

Commit

Permalink
v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Jan 6, 2025
1 parent 6b4cd9f commit 3ea016a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 64 deletions.
20 changes: 0 additions & 20 deletions .SRCINFO

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.tar.*
*.tar*
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 VHSgunzo
Copyright (c) 2025 VHSgunzo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 7 additions & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# Maintainer: VHSgunzo <vhsgunzo.github.io>

pkgname='fake-nvidia-driver'
pkgver='0.8'
pkgrel='1'
pkgbase="$pkgname"
pkgver='0.9'
pkgrel='2'
pkgdesc='Fake Nvidia driver for RunImage container'
url="https://github.com/VHSgunzo/runimage-fake-nvidia-driver"
arch=('x86_64')
license=('MIT')
conflicts=(
'nvidia-libgl'
'lib32-nvidia-utils' 'nvidia-utils'
'lib32-opencl-nvidia' 'opencl-nvidia'
)
provides=("${conflicts[@]}" 'NVIDIA-MODULE')
source=('fake-nvidia-driver.tar.gz')
replaces=('nvidia-libgl')
provides=("${conflicts[@]}" 'NVIDIA-MODULE' 'vulkan-driver' 'lib32-vulkan-driver')

source=('fake-nvidia-driver.tar')
sha256sums=('SKIP')

package() {
Expand Down
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ try_dl() {
aria2c --allow-overwrite -o "$1" -d "$(dirname "$1")" "$2"
elif which wget &>/dev/null
then
wget -q --show-progress --no-check-certificate --content-disposition -t 3 -T 5 -w 0.5 \
wget -q --show-progress --no-check-certificate -t 3 -T 5 -w 0.5 \
"$2" -O "$(dirname "$1")/$1"
elif which curl &>/dev/null
then
Expand Down Expand Up @@ -73,8 +73,8 @@ if try_dl "lib32-nvidia-utils.tar.zst" "https://archlinux.org/packages/multilib/
mkdir -p etc/OpenCL/vendors
touch etc/OpenCL/vendors/nvidia.icd
echo -e "/usr/lib/nvidia/64\n/usr/lib/nvidia/32" > etc/ld.so.conf.d/nvidia.conf
echo "= create fake-nvidia-driver.tar.gz"
tar --gzip -acf ../fake-nvidia-driver.tar.gz -C ./ usr etc)
echo "= create fake-nvidia-driver.tar"
tar -cf ../fake-nvidia-driver.tar -C ./ usr etc)
echo "= create archlinux package"
makepkg -s
echo "= cleanup"
Expand Down

0 comments on commit 3ea016a

Please sign in to comment.