Move download functions into a module

This commit is contained in:
2023-01-04 10:51:08 +01:00
parent 5b26e7dca8
commit ef9942fe99
3 changed files with 67 additions and 48 deletions

View File

@ -15,7 +15,7 @@ module SlackBuilder
tarball_name = "dmd.#{version}.linux.tar.xz"
uri = URI "http://downloads.dlang.org/releases/2.x/#{version}/#{tarball_name}"
checksum = download(uri, "slackbuilds/development/dmd/#{tarball_name}")
checksum = SlackBuilder.download(uri, "slackbuilds/development/dmd/#{tarball_name}")
package = Package.new 'development/dmd', version: version,
homepage: 'https://dlang.org'