<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 22, 2022, 8:35 PM B. Watson, <<a href="mailto:urchlay@slackware.uk">urchlay@slackware.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Tue, 22 Mar 2022, Brandon Pribula wrote:<br>
<br>
> only options I can see are either splitting the package up into two separate<br>
> slackbuilds, or install both.<br>
<br>
> Which of those two options are preferable or is there another option?<br>
<br>
Other options:<br>
<br>
- Install both scripts in $PKG/usr/bin, call one "appname" and the other<br>
   "appname-posix", and explain the situation in your README.<br>
<br>
- Use an environment variable (APPNAME_POSIX=yes|no) to let the user<br>
   choose which of the scripts to include in the package.<br>
<br>
One thing that's *not* an option: Don't have one SlackBuild script<br>
that creates two separate packages (in other words, don't ever<br>
call makepkg twice).<br>
<br>
If you do decide to make separate packages for 'appname' and<br>
'appname-posix', it'll have to be two separate SlackBuilds.<br>
Personally, I'd choose one of the other options (one SlackBuild, one<br>
package, either include both scripts or use the env to select one).<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank" rel="noreferrer">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer 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 noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer noreferrer" target="_blank">https://slackbuilds.org/faq/</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks for the reply, B. Watson :)</div><div dir="auto"><br></div><div dir="auto">For the option of using an ENV variable, can it also be used to install both scripts as long as makepkg isn't called twice?</div><div dir="auto"><br></div><div dir="auto">Then just use appname for the package name no matter which option is chosen. In the README I could specify which executable to call depending on the options chosen.</div></div>