Package Details: reshade-shaders-git r81.fe1771a-1

Git Clone URL: https://aur.archlinux.org/reshade-shaders-git.git (read-only, click to copy)
Package Base: reshade-shaders-git
Description: A collection of post-processing shaders written in the ReShade FX shader language, to be used by vkBasalt
Upstream URL: https://github.com/crosire/reshade-shaders
Licenses: custom
Submitter: gee
Maintainer: Billli11
Last Packager: Billli11
Votes: 22
Popularity: 0.71
First Submitted: 2020-02-03 01:25 (UTC)
Last Updated: 2024-08-14 04:14 (UTC)

Dependencies (3)

Required by (2)

Sources (1)

Latest Comments

1 2 Next › Last »

RubenKelevra commented on 2024-07-30 10:58 (UTC)

@gee if you don't have the time to maintain, just orphan it.

RubenKelevra commented on 2024-07-30 10:43 (UTC)

Throws a lot of errors while building...

mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/Textures/*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/Textures/*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/Textures/*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory
mv: cannot stat '*/Textures/*.*': No such file or directory
mv: cannot stat '*/LICENSE*': No such file or directory
mv: cannot stat '*/LICENSE*.*': No such file or directory

etc

gee commented on 2024-06-27 09:54 (UTC) (edited on 2024-06-28 00:44 (UTC) by gee)

Hey @Billli11 sorry I don't have the time these days to work on stuff like this, I hope you or somebody else can find a proper fix. I'd be happy to approve a co-maintainer if someone is willing.

Billli11 commented on 2024-06-24 05:53 (UTC) (edited on 2024-06-24 05:58 (UTC) by Billli11)

When building with the current build script, any sub-directory inside of each effect package will not be included. Causing multiple effect fail to load.

example of missing files

opt/reshade/shaders/AstrayFX/OneShot/Limbo_Mod.fx
opt/reshade/shaders/AstrayFX/OneShot/SnowScape.fx
opt/reshade/shaders/CRT-Royale/crt-royale/lib/bind-shader-params.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/bloom-functions.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/blur-functions.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/derived-settings-and-constants.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/downsampling-functions.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/gamma-management.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/geometry-functions.fxh
opt/reshade/shaders/CRT-Royale/crt-royale/lib/helper-functions-and-macros.fxh
...

I tried to fix it by brute forcing it with find but it look ugly.

diff --git a/PKGBUILD b/PKGBUILD
index a5c5221..2c80384 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: gee

 pkgname=reshade-shaders-git
-pkgver=r31.99b9732
+pkgver=r72.8a7ab37
 pkgrel=1
 pkgdesc='A collection of post-processing shaders written in the ReShade FX shader language, to be used by vkBasalt'
 arch=('any')
@@ -28,31 +28,39 @@ build() {
   do
     if [[ "$line" == "InstallPath"* ]]
     then
-      folder=${line:38}
+      folder=${line#*reshade-shaders\\}
+      # Replace backslash to forward slash
+      folder=${folder//\\/\/}
+      continue
     fi
     if [[ "$line" == "DownloadUrl"* ]]
     then
-      url=${line:12}
+      url=${line#DownloadUrl=}
       msg "Getting $url"
       /usr/bin/curl  -L "$url" -o file.zip
       /usr/bin/unzip file.zip
       rm file.zip
-      mkdir -p ../Shaders/$folder
+      mkdir -p "../$folder"
       msg "$folder"
-      if [[ "$folder" == "akgunter" ]]
-      then
-        mv */{*/Shaders/*.*,README.MD,LICENSE.TXT} ../Shaders/$folder
-      elif [[ "$folder" == "CRT-Royale" ]]
-      then
-        mv crt-royale-reshade-master/{reshade-shaders/Shaders/*.*,README.MD,LICENSE.TXT} ../Shaders/$folder
-      elif [[ "$folder" == "CShade" ]]
-      then
-        mv CShade-main/{shaders/*,README.md,LICENSE} ../Shaders/$folder
-      else
-        mv */{Shaders/*.*,README.md} ../Shaders/$folder || true
-        mv */{LICENSE*,LICENSE*.*} ../Shaders/$folder || true
-        mv */Textures/*.* ../Textures || true
-      fi
+
+      while read -r shaders; do
+          if [ -d "$shaders" ]; then
+            cp -r "$shaders/"* -t "../$folder"
+            rm -r "$shaders"
+          fi
+      done < <(find . -type d -iname 'shaders')
+
+      while read -r license; do
+            cp "$license" -t "../$folder"
+            rm "$license"
+      done < <(find . -type f -iregex '.*/\(license.*\|.*\.md\)')
+
+      while read -r textures; do
+          if [ -d "$textures" ]; then
+            cp -r "$textures/"* -t "../Textures"
+            rm -r "$textures"
+          fi
+      done < <(find . -type d -iname 'textures')
     fi
   done < ../EffectPackages.ini
 }
@@ -60,17 +68,15 @@ build() {
 package() {
   cd ${srcdir}/reshade-shaders

+  msg "Packaging shaders' files"
   install -dm 755 "${pkgdir}/opt/reshade/shaders"
-  install -Dm 644 Shaders/*.*  "${pkgdir}/opt/reshade/shaders/"
-  cd Shaders
-  for dir in */
-  do
-    cd "$dir"
-    install -dm 755 "$pkgdir/opt/reshade/shaders/$dir"
-    install -Dm 644 *.*  "${pkgdir}/opt/reshade/shaders/$dir"
-    cd ..
-  done
-  cd ..
+  while read -r shaders_file; do
+    install -Dm 644 "Shaders/$shaders_file" "${pkgdir}/opt/reshade/shaders/${shaders_file#./}"
+  done < <(cd Shaders ; find . -type f )
+
+  msg "Packaging textures' files"
   install -dm 755 "${pkgdir}/opt/reshade/textures"
-  install -Dm 644 Textures/*.* "${pkgdir}/opt/reshade/textures/"
+  while read -r textures_file; do
+    install -Dm 644 "Textures/$textures_file" "${pkgdir}/opt/reshade/textures/${textures_file#./}"
+  done < <(cd Textures ; find . -type f )
 }

gee commented on 2023-09-26 17:19 (UTC) (edited on 2023-09-26 17:19 (UTC) by gee)

@scorpius2k1 yeah shaderdeck is empty it seems... not sure why it's included or what that means. I've worked around that, hopefully that'll be fine.

I haven't used this package in years, I'd really appreciate a co-maintainer to catch these issues so that many people don't have to face those before I read the AUR comments...

scorpius2k1 commented on 2023-09-25 23:19 (UTC) (edited on 2023-09-25 23:23 (UTC) by scorpius2k1)

@gee looks like this issue has come up again. I am seeing this error on a fresh installation.

Install via git clone and makepkg -si mv: cannot stat '/Shaders/.*': No such file or directory ==> ERROR: A failure occurred in build(). Aborting...

Install via "yay" AUR helper mv: cannot stat '/Shaders/.*': No such file or directory ==> ERROR: A failure occurred in build(). Aborting... -> error making: reshade-shaders-git-exit status 4 -> Failed to install the following packages. Manual intervention is required: reshade-shaders-git - exit status 4

gee commented on 2023-04-14 00:56 (UTC)

@kristianjgs I've fixed it, hopefully that works now.

kristianjgs commented on 2023-04-13 23:58 (UTC)

hello,

mv: cannot stat '/Shaders/.': No such file or directory mv: cannot stat '/README.md': No such file or directory ==> ERROR: A failure occurred in build(). Aborting... -> error making: reshade-shaders-git-exit status 4 -> Failed to install the following packages. Manual intervention is required: reshade-shaders-git - exit status 4

gee commented on 2023-03-13 11:54 (UTC)

I've pushed a new version that hopefully does it right.

I think it's kind of ugly though, it may be better to have a new PKGBUILD per GitHub repo and make this one a meta PKGBUILD. I haven't used those shaders in years though so I don't really have the motivation to do this in my little free time, maybe some of you would?

Ropid commented on 2023-03-10 23:05 (UTC)

The shaders now are distributed over many different Github repositories. I'm guessing on Windows the installer tool gets the list for those out of this file here, and then downloads the .zip files mentioned on the DownloadUrl= lines:

https://github.com/crosire/reshade-shaders/blob/list/EffectPackages.ini