<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 22, 2022, 10:32 PM Brandon Pribula <<a href="mailto:b.pribs11@gmail.com">b.pribs11@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank" rel="noreferrer">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" rel="noreferrer noreferrer" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer 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 noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer 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></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If you'd like to see an example of enabling different options, you could look at my mediainfo script. It defaults to build only the CLI, but you can enable the GUI with the CLI or do only the GUI.</div><div dir="auto"><br></div><div dir="auto">It'd be a little different since you're only dealing with scripts instead of compiling programs.</div><div dir="auto"><br></div><div dir="auto"><a href="https://slackbuilds.org/repository/15.0/multimedia/mediainfo/">https://slackbuilds.org/repository/15.0/multimedia/mediainfo/</a><br></div><div dir="auto"><br></div><div dir="auto">Jeremy</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>