[Slackbuilds-users] Issues with new scripts for crelay
Sebastian Arcus
s.arcus at open-t.co.uk
Sun Nov 20 23:08:41 UTC 2022
That's brilliant - that's exactly what I've gone and done. Thank you
both for the quick and helpful replies
On 20/11/2022 22:42, Robby Workman wrote:
> It appears to only install a single binary (see line 12 of Makefile).
> Easiest thing to do is just:
>
> make
> mkdir $PKG/usr/bin
> cat crelay > $PKG/usr/bin/crelay
> chmod 0755 $PKG/usr/bin/crelay
>
> -RW
>
>
> On Sun, 20 Nov 2022 21:24:30 +0000
> Sebastian Arcus <s.arcus at open-t.co.uk> wrote:
>
>> On 20/11/2022 20:09, Matteo Bernardini wrote:
>>> yes, you can use a patch or set PREFIX as null like
>>>
>>> sed -i "s|PREFIX=/local|PREFIX=|" src/Makefile
>>>
>>> both are fine, IMHO.
>>>
>>
>> Thank you for the quick reply. I just realised that the path is
>> hard-wired outside the package directory - which is not what we want
>> (I think?). So instead should I include the lines below?
>>
>> sed -i "s|PREFIX=/local|PREFIX=|" src/Makefile
>> sed -i "s|DESTDIR=/usr|DESTDIR=$PKG/usr|" src/Makefile
>>
>> I tried it but it doesn't seem to be working - I'm not sure if I'm
>> making a hash of it by including bash variables between double quotes
>> in the sed command?
>>
>>
>>
>>
>>> Matteo
>>>
>>> Il giorno dom 20 nov 2022 alle ore 21:03 Sebastian Arcus
>>> <s.arcus at open-t.co.uk <mailto:s.arcus at open-t.co.uk>> ha scritto:
>>>
>>> I am trying to make SBo scripts to build crelay
>>> (https://github.com/ondrej1024/crelay
>>> <https://github.com/ondrej1024/crelay>)
>>>
>>> The sources come with a pre-made Makefile, which uses the path
>>> /usr/local/bin for the binary. What is the accepted way to
>>> change this using SBo scripts to /usr/bin? Do I make a patch for
>>> the Makefile and apply it during the build? Or is there a better
>>> way? Thank you for any hints
>>> _______________________________________________
>>> SlackBuilds-users mailing list
>>> SlackBuilds-users at slackbuilds.org
>>> <mailto:SlackBuilds-users at slackbuilds.org>
>>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>>> <https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>
>>> Archives -
>>> https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>>> <https://lists.slackbuilds.org/pipermail/slackbuilds-users/>
>>> FAQ - https://slackbuilds.org/faq/
>>> <https://slackbuilds.org/faq/>
>>>
>>>
>>> _______________________________________________
>>> SlackBuilds-users mailing list
>>> SlackBuilds-users at slackbuilds.org
>>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>>> Archives -
>>> https://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ -
>>> https://slackbuilds.org/faq/
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - https://slackbuilds.org/faq/
>>
More information about the SlackBuilds-users
mailing list