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:].]\\+"] +# }