From 3ea016a96aba80a34a2cdcb99bf586330c475f88 Mon Sep 17 00:00:00 2001 From: VHSgunzo Date: Mon, 6 Jan 2025 09:40:56 +0300 Subject: [PATCH] v0.9 --- .SRCINFO | 20 -------------------- .github/workflows/ci.yml | 34 ---------------------------------- .gitignore | 2 +- LICENSE | 2 +- PKGBUILD | 12 +++++++----- build.sh | 6 +++--- 6 files changed, 12 insertions(+), 64 deletions(-) delete mode 100644 .SRCINFO delete mode 100644 .github/workflows/ci.yml diff --git a/.SRCINFO b/.SRCINFO deleted file mode 100644 index fe33d5b..0000000 --- a/.SRCINFO +++ /dev/null @@ -1,20 +0,0 @@ -pkgbase = fake-nvidia-driver - pkgdesc = Fake Nvidia driver for RunImage container - pkgver = 0.8 - pkgrel = 1 - url = https://github.com/VHSgunzo/runimage-fake-nvidia-driver - arch = x86_64 - license = MIT - provides = lib32-nvidia-utils - provides = nvidia-utils - provides = lib32-opencl-nvidia - provides = opencl-nvidia - provides = NVIDIA-MODULE - conflicts = lib32-nvidia-utils - conflicts = nvidia-utils - conflicts = lib32-opencl-nvidia - conflicts = opencl-nvidia - source = fake-nvidia-driver.tar.gz - sha256sums = SKIP - -pkgname = fake-nvidia-driver diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 49b0244..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: CI - -on: - push: - branches: - - action - tags: - - '*' - -jobs: - build_and_release: - name: fake-nvidia-driver - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Build archlinux package - uses: countstarlight/arch-makepkg-action@master - with: - packages: > - pacman-contrib - aria2 - scripts: "./build.sh" - - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: fake-nvidia-driver*.tar.* - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 9881fec..dd38fa2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -*.tar.* +*.tar* diff --git a/LICENSE b/LICENSE index eb4a81a..f74c4e3 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/PKGBUILD b/PKGBUILD index 3a60133..5b0bf99 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,19 +1,21 @@ # Maintainer: VHSgunzo 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() { diff --git a/build.sh b/build.sh index 83c73ed..186df37 100755 --- a/build.sh +++ b/build.sh @@ -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 @@ -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"