diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-10-05 19:24:42 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-10-05 19:24:42 +0200 |
| commit | f3beee3e19e2d64c8700cf67eb6cefc345efcf41 (patch) | |
| tree | 0c623d8000656894cc0831a35642836057f8ea7d /Rakefile | |
| parent | 7b5598a02e0faff590d94391a8b323e6fe74a4fe (diff) | |
| download | slackbuilder-f3beee3e19e2d64c8700cf67eb6cefc345efcf41.tar.gz | |
Combine info file structures
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -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')] |
