<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 22, 2022 at 10:43 PM B. Watson <<a href="mailto:urchlay@slackware.uk">urchlay@slackware.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Tue, 22 Mar 2022, Brandon Pribula wrote:<br>
<br>
> For the option of using an ENV variable, can it also be used to install both<br>
> scripts as long as makepkg isn't called twice?<br>
<br>
> Then just use appname for the package name no matter which option is chosen.<br>
<br>
Sure, but...<br>
<br>
> In the README I could specify which executable to call depending on the<br>
> options chosen.<br>
<br>
If you're using the environment variable approach... why not name the<br>
executable 'appname' in the package, regardless of whether it was<br>
originally called 'appname' or 'appname-posix' in the source? User<br>
always types same command to run the script...<br>
<br>
But, if you're going to go to the trouble of writing up an explanation<br>
in the README, you might as well skip the environment variable,<br>
and just install both scripts in the package, and mention in the<br>
README the fact that the user can choose to run either 'appname' or<br>
'appname-posix'.<br>
<br>
If the two scripts are in two separate download files, that's not<br>
really a problem (put both in DOWNLOAD= in the .info file, write<br>
SlackBuild code to extract both).<br>
<br>
One thing you might want to do... look through the repo and see what<br>
others have done, to get ideas. Though these days that can be pretty<br>
time-consuming (we have almost 8000 builds now).<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br></blockquote><div><br></div><div>Well for the environment variable approach I wanted to give the option of installing both, so in that case the executables would have to have different names. So in terms of the script I thought it would make sense to just have distinct names for the executables no matter which option they chose.<br></div><div><br></div><div>I didn't realize there were that many slackbuilds. That's impressive!</div><div><br></div><div>Thanks again for your help :)<br></div></div></div>