summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-09-26 16:37:26 +0200
committerEugen Wissner <belka@caraus.de>2025-09-26 16:37:26 +0200
commit08a9d7f183520ab52391549a804a306be3be93f1 (patch)
tree81ad43a5e3ea892782631a8e655f1ffee19cb97c
parenta2e8e1bcf2fbfcc8cc1b980cca2b93df86e1a7fe (diff)
downloadslackbuilder-08a9d7f183520ab52391549a804a306be3be93f1.tar.gz
Add package configuration examples
-rw-r--r--README.md12
-rw-r--r--config/config.toml.example26
2 files changed, 30 insertions, 8 deletions
diff --git a/README.md b/README.md
index 093d62d..f7a173e 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/config/config.toml.example b/config/config.toml.example
index 476c71c..4efa817 100644
--- a/config/config.toml.example
+++ b/config/config.toml.example
@@ -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:].]\\+"]
+# }