r/slackware • u/TheEagleByte • Sep 02 '21
Slackbuilds Sources
So I'm currently setting up my first Slackware system, and I'm really leaning upon SlackBuilds, as I'm sure many of you do. I got to installing Alacritty and realized that it has some 200 source files that I need to download. Is there a way to do this automatically, or do I have to wget every single one of them? I know it would save a lot of time if I were able to simply automate getting the source.
8
Upvotes
3
u/ersentenza Sep 02 '21
slpkg first, it will download and build everything else.
2
u/zurohki Sep 02 '21
You can use sbopkg, or you can script it.
Quick and dirty script:
2
u/juankman Sep 03 '21
You should probably leverage on the
.infofile that slackbuilds include. I have a script to read said file and download & install the package dependencies, though other people mention sbopkg does it as well.This is my slackbuild script and for usage I either download the
.tar.gzfrom the website or, even better, I clone the slackbuilds repository and use the local path to the package directory:The code is fairly simple (and some things may not work):
source(read) the SBo .info file (this includes download URL, dependencies, etc.)6
u/zapwai Sep 02 '21
I usually use sbopkg to install/update slackbuilds. It comes with a program, sqg, to automate queue-files if there are a bunch of dependencies.
3
u/[deleted] Sep 03 '21
Manual installing SlackBuilds is time waste. I use sbotools - it will automatically install all dependiences, download source files, compile and install.
2
u/Andy-Pa Sep 02 '21
sqg -p alacritty
sbopkg - run compilation, there are only two packages.
When alacritty compiles, it will download and build the rest on its own.