diff options
author | Giovanni Santini | 2024-05-05 15:11:38 +0200 |
---|---|---|
committer | Giovanni Santini | 2024-05-05 15:11:38 +0200 |
commit | 82f7961d3d1e4373e734e968436609b29f65eaae (patch) | |
tree | 65d291089d0f895ed87353c09c8a5f2b55605e33 /copy-libatomic_fixes.patch | |
parent | 9c13e4f3383e271b96fe2d09bd91e035e86a7500 (diff) | |
download | aur-popcorntime.tar.gz |
upgpkg: popcorntime 0.5.1-1
- Version bump.
Diffstat (limited to 'copy-libatomic_fixes.patch')
-rw-r--r-- | copy-libatomic_fixes.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/copy-libatomic_fixes.patch b/copy-libatomic_fixes.patch new file mode 100644 index 000000000000..236f9fd05afe --- /dev/null +++ b/copy-libatomic_fixes.patch @@ -0,0 +1,41 @@ +diff --git a/dist/linux/copy-libatomic.sh b/dist/linux/copy-libatomic.sh +index 19f6cebfd..59574ef01 100755 +--- a/dist/linux/copy-libatomic.sh ++++ b/dist/linux/copy-libatomic.sh +@@ -7,22 +7,24 @@ arch=$3 + + outDir="$1/$2/$3" + +-sudo dpkg --add-architecture i386 +-dpkg-query -s libatomic1 +-if [ ! $? = 0 ]; then +- sudo apt update +- sudo apt install -y libatomic1 +-fi +-dpkg-query -s libatomic1:i386 +-if [ ! $? = 0 ]; then +- sudo apt update +- sudo apt install -y libatomic1:i386 ++if command -v dpkg; then ++ sudo dpkg --add-architecture i386 ++ dpkg-query -s libatomic1 ++ if [ ! $? = 0 ]; then ++ sudo apt update ++ sudo apt install -y libatomic1 ++ fi ++ dpkg-query -s libatomic1:i386 ++ if [ ! $? = 0 ]; then ++ sudo apt update ++ sudo apt install -y libatomic1:i386 ++ fi + fi + + if [[ $arch == "linux64" ]] + then +- read source <<< `readlink -f /usr/lib/x86_64*/libatomic.so.*` ++ read source <<< `readlink -f /usr/lib64/libatomic.so.*` + else +- read source <<< `readlink -f /usr/lib/i386*/libatomic.so.*` ++ read source <<< `readlink -f /usr/lib32/libatomic.so.*` + fi + cp $source "$outDir/lib/libatomic.so.1" |