[SOLVED] sbopkg, is there a way to rename the tarballs downloaded from info file specifications?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sbopkg, is there a way to rename the tarballs downloaded from info file specifications?
Going for a git build of a package but I don't wanna rename everything to 40sd0f8sw0fweorwoefu20rjsof2eu02ruw0rfsldf230igf-git when it's still the same major/minor number, but merely a nightly build.
So, a way to rename the tarball to software-2.0.0.tar.gz instead of software-2.0.0awwjlasdjflsahlsdjflasdfsf-git.tar.gz would be nice.
I guess I could technically rename the file in the slackbuild itself but I thought I'd ask for an info file URL solution first.
If I were to put this url into the DOWNLOAD variable, then what sbopkg would download would be named "blender-2.79-57b5852bc8b8-linux-glibc224-x86_64.tar.bz2"
But the slackbuild usually expects the tarball to be progname-version, in this case it's a much more complicated name.
Now, some slackbuilds deal with that (like the Blender one), but this is just an example cause I'm currently dealing with some blender problems regarding python, it seems (GUI is all messed up, lots of not found bits and pieces)
I just wished for this functionality before, hence me asking, Blender is just an example, the build file accepts it happily, but in the past some build files didn't.
this example surely won't work, as you are trying to substitute a tarball with sources with one containing a binary.
but I suppose the answer to your question is to create a local repository and modify in it all the slackbuilds that you want to customize accordingly, and not just the DOWNLOAD variable in the *.info file: you need to modify, at least, also the MD5SUM, and the VERSION (both in the *.info file and the *.SlackBuild)...
also you may need to edit additional things in the SlackBuild: usually a version-bump is ok but it may happen that something changes between one version of the software and the other so that the SlackBuild may need some intervention (there's no general rule, it depends on the software).
If I were to put this url into the DOWNLOAD variable, then what sbopkg would download would be named "blender-2.79-57b5852bc8b8-linux-glibc224-x86_64.tar.bz2"
But the slackbuild usually expects the tarball to be progname-version, in this case it's a much more complicated name.
Now, some slackbuilds deal with that (like the Blender one), but this is just an example cause I'm currently dealing with some blender problems regarding python, it seems (GUI is all messed up, lots of not found bits and pieces)
I just wished for this functionality before, hence me asking, Blender is just an example, the build file accepts it happily, but in the past some build files didn't.
What you're trying to do with that example won't work because the Blender (note capital B spelling) SlackBuild is intended to build blender from a source code tarball, whereas your download url is for a prebuilt blender.
You'd be better off modifying the SlackBuild for blender (note all lower case spelling) which repackages a prebuilt download.
chris
Last edited by chris.willing; 03-15-2019 at 04:54 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.