Can we make slackbuilds easier?
After many hours of fiddling with a 'project' computer (which is really just a better way of saying spare parts that were laying around the house and turned into a working machine), I installed way too many slackbuild packages which became very time consuming. Mythtv can be named the main culprit behind this, because it has a lot of packages that it depends on (and those packages depend on a lot of packages and so on). So I began to ask myself this question of 'Can I make slackbuilds easier?' and in the spirit of B0b the Builder I answered 'Yes we can!'.
So I give to you, my fellow slackers, a small script that takes a file (for some reason too many cmd line arguments won't register) of package names and slackbuild names and then does the rest of the work for you. This will work for most all packages that follow the usual layout: pkgName-0.1.2.extension or even pkg-Name-0.1.2.extension or even pkg-Name-0.1.2rc3.extension. Note it will break if the package is a snapshot that includes the date in the version number or other weird formats. Also note that it will not pass arguments to the slackbuilds for you (though I'd imagine you can just set them before you run the script and all will turn out ok). Anyway feel free to do anything you like with these scripts (use it, modify it, post it on the web, print it out and set it on fire) so long as you don't claim credit for the work you didn't do. Code:
root@multimedia:/make# cat /usr/sbin/installsbo Code:
example-1.2.3.tar.bz2 example.tar.gz helloWorld.4.5.6.tar.bz2 helloWorld.tar.gz Code:
example-1.2.3.tar.bz2 example.tar.gz |
I can kinda see where you're going with this, but why not just go with the excellent sbopkg and use its queue facility?
http://www.sbopkg.org/ |
Quote:
|
Quote:
|
That's actually pretty neat :)
could be used for some other, more specific packaging routines, tested, and incorporated as a sort of favpack install. Nice work! |
Mmmm I did that for converting my CDs to mp3/flac... then I realized there was abcde which did everything I wanted except place the final files in separate directories.
It was really annoying to try and find software that named the files -exactly- how I wanted them. But in regards to the topic; I personally don't like using SBo for too many things. I like creating my own build queues for things like inkscape that doesn't have a lot of shared dependencies with other packages that I install. |
All times are GMT -5. The time now is 09:06 PM. |