[Slackbuilds-users] RFC: changing .SlackBuild to allow separate source tree

Nick Blizzard nickblizzard1776 at gmail.com
Wed Aug 7 00:47:28 UTC 2013


some tweak of this usually works for me (shamelessly stole from pats
scripts)

VERSION=${VERSION:-$(echo ${PRGNAM}-*.tar.?z* | rev | cut -f 3- -d . | cut
-f 1 -d - | rev)}

at most I have to tweak the 3 and 1 for how the source package gets
named... pair with a download script that pulls from the info... and it
just works.



On Tue, Aug 6, 2013 at 8:23 PM, Miguel De Anda <miguel at thedeanda.com> wrote:

> I'd be more interested in having the template pull variables off the .info
> file. I often find myself updating version numbers in lots of files when
> doing it once would normally be quicker and cleaner.
>
>
> On Tue, Aug 6, 2013 at 3:20 PM, B Watson <yalhcru at gmail.com> wrote:
>
>> On 8/5/13, King Beowulf <kingbeowulf at gmail.com> wrote:
>> > What do you think of change to the slackbuild template along the lines
>> of:
>> >
>> > ...
>> > MYSRC=${MYSRC:-$CWD}
>> > ...
>> > # with -C don't need a 'cd $TMP' line
>> > tar xvf $MYSRC/$PRGNAM-$VERSION.tar.gz -C $TMP
>>
>> Good plan.
>>
>> I'd rather call it SRCDIR or something, but that's nitpicking.
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - http://slackbuilds.org/faq/
>>
>>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130806/ac1dc3f9/attachment.html>


More information about the SlackBuilds-users mailing list