summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-10-05 19:24:42 +0200
committerEugen Wissner <belka@caraus.de>2023-10-05 19:24:42 +0200
commitf3beee3e19e2d64c8700cf67eb6cefc345efcf41 (patch)
tree0c623d8000656894cc0831a35642836057f8ea7d /Rakefile
parent7b5598a02e0faff590d94391a8b323e6fe74a4fe (diff)
downloadslackbuilder-f3beee3e19e2d64c8700cf67eb6cefc345efcf41.tar.gz
Combine info file structures
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile29
1 files changed, 0 insertions, 29 deletions
diff --git a/Rakefile b/Rakefile
index 4912b59..97954f3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -83,36 +83,7 @@ task 'rdiff-backup', [:version] do |_, arguments|
commit 'system/rdiff-backup', arguments[:version]
end
-module SlackBuilder
- class Updater
- include Rake::FileUtilsExt
-
- def update(version)
- raise NotImplementedError
- end
- end
-
- class PHP < Updater
- def update(version)
- package = Package.new 'development/php82',
- version: version,
- homepage: 'https://www.php.net/',
- requires: ['postgresql']
-
- uri = "https://www.php.net/distributions/php-#{version}.tar.xz"
- tarball = "slackbuilds/development/php82/php-#{version}.tar.xz"
- checksum = SlackBuilder.download URI(uri), tarball
-
- write_info package, downloads: [Download.new(uri, checksum)]
- update_slackbuild_version 'development/php82', version
-
- commit 'development/php82', version
- end
- end
-end
-
AUTO_UPDATABLE = {
- 'php82' => [SlackBuilder::GitHub.new('php', 'php-src', 'php'), SlackBuilder::PHP.new],
'rdiff-backup' => [SlackBuilder::GitHub.new('rdiff-backup', 'rdiff-backup', 'rdiff-backup')],
'librsync' => [SlackBuilder::GitHub.new('librsync', 'librsync')],
'dmd' => [SlackBuilder::LatestText.new('https://downloads.dlang.org/releases/LATEST')]