Add package configuration examples
All checks were successful
Build / audit (push) Successful in 10s
Build / test (push) Successful in 12m44s
Build / release (push) Successful in 12m15s

This commit is contained in:
2025-09-26 16:37:26 +02:00
parent a2e8e1bcf2
commit 08a9d7f183
2 changed files with 30 additions and 8 deletions

View File

@@ -45,15 +45,11 @@ Just copy this file to `config/config.toml` and modify as needed.
Each package that should be updated automatically needs a special
description which contains links to the upstream repositories and
instructions how the sources should be prepared.
instructions how the sources should be prepared. List of such
descriptions is contained inside the configuration file.
Unfortunately the only format currently supported for the package
descriptions is Haskell source code. But I'm planning to make it
possible to describe the packages without recompiling the slackbuilder
itself.
For the time being `src/Main.hs` contains descriptions of my
slackbuilds, that can be used as an example and a start point.
There are some sample package descriptions at the bottom of
`config/config.toml.example`.
## Command line options

View File

@@ -33,3 +33,29 @@ upload_command = ["scp", "%s", "example.com:/srv/httpd/some/path/%c"]
# Whether the git commits should be signed with a GPG signature using the
# default key.
signature = false
## Package configurations.
# [[package]] # Packagist package registry.
# name = "composer"
# template = "https://getcomposer.org/download/{version}/composer.phar"
# is64 = false
# version = "\\."
# packagist = { owner = "composer", name = "composer" }
#
# [[package]] # GitHub release.
# name = "jq"
# template = "https://github.com/jqlang/jq/releases/download/jq-{version}/jq-{version}.tar.gz"
# is64 = false
# version = "(jq-)\\."
# github = { owner = "jqlang", name = "jq" }
#
# [[package]] # Find the latest version by analyzing a release page.
# name = "webex"
# template = "https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb"
# is64 = true
# version = "(Linux—)*"
# text = {
# url = "https://help.webex.com/en-us/article/mqkve8/Webex-App-%7C-Release-notes",
# picker = ["grep", "-oh", "Linux—[[:digit:].]\\+"]
# }