Migrate ioncube task

This commit is contained in:
Eugen Wissner 2021-10-12 07:42:35 +02:00
parent 0158964482
commit 8e3261bddd
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
3 changed files with 33 additions and 48 deletions

View File

@ -11,10 +11,10 @@ require_relative 'lib/package'
require_relative 'lib/download' require_relative 'lib/download'
task :dmd do task :dmd do
version = '2.096.0' version = '2.097.2'
dub_version = '1.25.0' dub_version = '1.26.1'
dscanner_version = '0.11.0' dscanner_version = '0.11.1'
dcd_version = '0.13.1' dcd_version = '0.13.6'
tarball_name = "dmd.#{version}.linux.tar.xz" tarball_name = "dmd.#{version}.linux.tar.xz"
uri = URI "http://downloads.dlang.org/releases/2.x/#{version}/#{tarball_name}" uri = URI "http://downloads.dlang.org/releases/2.x/#{version}/#{tarball_name}"
@ -140,3 +140,31 @@ task :hhvm do
update_slackbuild_version 'development/hhvm', version update_slackbuild_version 'development/hhvm', version
end end
task :ioncube do
version = '10.4.5'
tarball_name = {
'32' => "ioncube_loaders_lin_x86_#{version}.tar.gz",
'64' => "ioncube_loaders_lin_x86-64_#{version}.tar.gz"
}
uri = {
'32' => URI("http://downloads3.ioncube.com/loader_downloads/#{tarball_name['32']}"),
'64' => URI("http://downloads3.ioncube.com/loader_downloads/#{tarball_name['64']}")
}
checksum = {
'32' => download(uri['32'], "slackbuilds/development/ioncube-loader/#{tarball_name['32']}").hexdigest,
'64' => download(uri['64'], "slackbuilds/development/ioncube-loader/#{tarball_name['64']}").hexdigest
}
package = Package.new 'development/ioncube-loader',
version: version,
homepage: 'https://www.ioncube.com'
write_info package,
downloads: [
Download.new(uri['32'], checksum['32']),
Download.new(uri['64'], checksum['64'], is64: true)
]
update_slackbuild_version 'development/ioncube-loader', version
commit 'development/ioncube-loader', version
end

View File

@ -54,7 +54,7 @@ end
private private
def requires_entry(requires) def requires_entry(requires)
requires.empty? ? '%README%' : requires * ' ' requires * ' '
end end
def download_entries(downloads64, downloads32) def download_entries(downloads64, downloads32)

View File

@ -1,43 +0,0 @@
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
VERSION=${VERSION:-10.3.9}
set -e
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86_${VERSION}.tar.gz \
http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64_${VERSION}.tar.gz
CHECKSUM32="`md5sum ioncube_loaders_lin_x86_${VERSION}.tar.gz | cut -d ' ' -f 1`"
CHECKSUM64="`md5sum ioncube_loaders_lin_x86-64_${VERSION}.tar.gz | cut -d ' ' -f 1`"
mv ioncube_loaders_lin_x86_${VERSION}.tar.gz \
ioncube_loaders_lin_x86-64_${VERSION}.tar.gz \
slackbuilds/development/ioncube-loader/
cat <<EOF > slackbuilds/development/ioncube-loader/ioncube-loader.info
PRGNAM="ioncube-loader"
VERSION="$VERSION"
HOMEPAGE="https://www.ioncube.com"
DOWNLOAD="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86_${VERSION}.tar.gz"
MD5SUM="$CHECKSUM32"
DOWNLOAD_x86_64="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64_${VERSION}.tar.gz"
MD5SUM_x86_64="$CHECKSUM64"
REQUIRES=""
MAINTAINER="Eugene Wissner"
EMAIL="belka@caraus.de"
EOF
sed -i "s#^\(VERSION=\)\${VERSION:-.\+#\1\${VERSION:-$VERSION}#" slackbuilds/development/ioncube-loader/ioncube-loader.SlackBuild
BRANCH="ioncube${VERSION//.}"
cd slackbuilds
git checkout master
git checkout -b $BRANCH
git add development/ioncube-loader
git commit -m "development/ioncube-loader: Updated for version ${VERSION}"
git push origin $BRANCH