1.The AppRun file specifies the location of some lib files of the software. 
These variables seem to be called when the software is running.


2.The purpose of "chmod -R 755" is to change the permissions of these folders, 
but it also affects the pictures in the final directory, so use "chmod 644" to 
change the permissions of the pictures back.
If you do not change the permissions of these folders, their permissions in the 
source directory are 600, and a warning will be output during installation that 
the directory permissions in the installation package are inconsistent with the 
permissions in the file system (In a clean ArchLinux environment, the default 
permission of the /usr/share/icons folder is 755)


Finally, please point out where I did not use $pkgdir correctly, I will check 
again


------------------ ???????? ------------------
??????:                                                                         
                                               "Discussion about the Arch User 
Repository (AUR)"                                                               
                     <aur-general@lists.archlinux.org&gt;;
????????:&nbsp;2021??7??13??(??????) ????12:21
??????:&nbsp;"aur-general"<aur-general@lists.archlinux.org&gt;;
????:&nbsp;"Eli Schwartz"<eschwa...@archlinux.org&gt;;
????:&nbsp;Re: [aur-general] Request to check my PKGBUILD



On 7/12/21 11:50 PM, ???????? via aur-general wrote:
&gt; I made a PKGBUILD for the "Badlion Client" software, but there will
&gt; be some warnings during the build. How can I deal with this problem?
&gt; If PKGBUILD has any other questions, please let me know.
&gt; 
&gt; tips: Badlion Client is a third-party launcher for Minecraft games.
&gt; To run the game, you need to have a genuine Minecraft Java Edition
&gt; account.

Hmm, what's the purpose of replacing the AppRun script? In fact, why not
just run the binary directly?

Also I notice in your PKGBUILD you chmod -R 755 a directory tree... you
should probably not be marking the files inside there, as executable.
They're just images. Why do you them chmod -R 644 some of the files?

Maybe you should consider using:

chmod -R ugo+rwX

(Also: this once, you forgot to quote $pkgdir correctly.)


-- 
Eli Schwartz
Bug Wrangler and Trusted User

Reply via email to