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

slackbuilds at jq.oc9.com slackbuilds at jq.oc9.com
Wed Aug 7 01:14:04 UTC 2013


On Tue, 6 Aug 2013, Nick Blizzard wrote:

> 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.
>>> _______________________________________________

What about the md5 sums ? I noticed that I do not need to update them so 
what kind of install/build script uses them?

Just curious...

$ cat  linphone.info
PRGNAM="linphone"
VERSION="3.5.2"
HOMEPAGE="http://www.linphone.org/"
DOWNLOAD="http://download-mirror.savannah.gnu.org/releases/linphone/3.5.x/sources/linphone-3.5.2.tar.gz"
MD5SUM="4be6e940372dba1f6793aef849c1ff0d"
...

-ls


More information about the SlackBuilds-users mailing list