-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synced already existing .installs, added 32 variant for lib32-libgl1-…
…amdgpu-mesa-dri
- Loading branch information
Showing
8 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# f00d6adb58ed0b888cc28a3b83af9a30 libgl1-amdgpu-mesa-dri_18.3.0-812932_i386.deb/postinst | ||
# Converted for arch linux (install script part): | ||
post_install() { | ||
source /usr/share/libalpm/scripts/update-amdgpu-dri-links-32 | ||
create_links | ||
} | ||
|
||
# 84cfe30e8c9c8e424e230d3c7743c969 libgl1-amdgpu-mesa-dri_18.3.0-812932_i386.deb/prerm | ||
# Converted for arch linux: | ||
pre_remove() { | ||
rm -f /opt/amdgpu/lib/i386-linux-gnu/dri/i965_dri.so | ||
|
||
for f in /opt/amdgpu/lib/i386-linux-gnu/dri/*_dri.so; do | ||
f=${f##*/} | ||
if [ -f /usr/lib32/dri/$f~ ]; then | ||
mv -f /usr/lib32/dri/$f~ /usr/lib32/dri/$f | ||
else | ||
rm -f /usr/lib32/dri/$f | ||
fi | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# f00d6adb58ed0b888cc28a3b83af9a30 libgl1-amdgpu-mesa-dri_18.3.0-812932_i386.deb/postinst | ||
# Converted for arch linux (hook trigger part): | ||
|
||
[Trigger] | ||
Type = File | ||
Operation = Install | ||
Operation = Upgrade | ||
Operation = Remove | ||
# Target path taken from interest trigger of a debian package, corrected for arch linux | ||
Target = usr/lib32/dri/* | ||
|
||
[Action] | ||
Description = Updating amdgpu dri links 32... | ||
When = PostTransaction | ||
Exec = . /usr/share/libalpm/scripts/update-amdgpu-dri-links-32; remove_links; create_links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
# f00d6adb58ed0b888cc28a3b83af9a30 libgl1-amdgpu-mesa-dri_18.3.0-812932_i386.deb/postinst | ||
# Converted for arch linux (hook script part): | ||
create_links() { | ||
for f in /opt/amdgpu/lib/i386-linux-gnu/dri/*_dri.so; do | ||
ln -sb $f /usr/lib32/dri | ||
done | ||
|
||
# Support I+A hybrid graphics | ||
if [ -f /usr/lib32/dri/i965_dri.so ] ; then # there also was && [ "/usr/lib32/dri" != "/opt/amdgpu/lib/x86_64-linux-gnu/dri" ] , but this will always be true due to they compare two strings. | ||
ln -s /usr/lib32/dri/i965_dri.so /opt/amdgpu/lib/i386-linux-gnu/dri | ||
fi | ||
} | ||
|
||
remove_links() { | ||
rm -f /opt/amdgpu/lib/i386-linux-gnu/dri/i965_dri.so | ||
|
||
for f in $(readlink -e /usr/lib32/dri/*.so); do | ||
if [ "${f%/*}" = "/opt/amdgpu/lib/i386-linux-gnu/dri" ]; then # I (Ashark) fixed ${f%%/*} -> ${f%/*} | ||
f=${f##*/} | ||
rm -f /usr/lib32/dri/$f | ||
if [ -f /usr/lib32/dri/$f~ ]; then | ||
mv -f /usr/lib32/dri/$f{~,} | ||
fi | ||
fi | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters