change a build script from sbopkg localy
Say I want to have one package in a newer version and change something in the build
How does this work? I change the info file, I change the slackbuild and the changes are ignored by sbopgk? |
sbopkg will extract the package file (which contains the slackbuild and the info file), so you changes are overwritten. if you made changes to the slackbuild, then invoke the slackbuild itself, don't use sbopkg.
|
I'll try to explain how I use sbopkg with a custom repository.
as sbopkg can use a git repository as source, I have: - forked SBo's git repository (master branch); - created a branch for every script I modify (I find easier to manage them this way); - merged every resulting branch in one with all the modifications (you can avoid the previous step if you are comfortable in using directly a single branch); - set up in /etc/sbopkg/sbopkg.conf to use that. you can modify the file /etc/sbopkg/repos.d/60-SBo-current.repo to point at your git repository or better create a new file (variables description is at the top of the file) with your data and configure the parameters you set there in sbopkg.conf. as an example you can create a file /etc/sbopkg/repos.d/70-slackbuilds.repo with this content Code:
# Repo Branch Description Tag Tool Link CheckGPG Code:
REPO_BRANCH=${REPO_BRANCH:-master} you should be able also to use a local repository, as described in this mailing list message, but doing without a git repository that's useful also as a backup I personally found pretty easy to lose the changes. |
thanks for the info, will check how his works
I will read the README-repos and see how far I come --edit looks promising, so I mark this as solved |
Another option is to use the edit option directly within sbopkg (go under the package you want to change and then select the edit... you can change the slackbuild to add or change options and the info if you need to change the download/md5sum). By default, it uses vi, but if you want a different editor (since I can never remember the commands), you can change the $EDITOR variable to a different editor, like pico or nano.
|
All times are GMT -5. The time now is 05:17 AM. |