summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2021-12-28 07:42:33 +0100
committerEugen Wissner <belka@caraus.de>2021-12-28 07:42:33 +0100
commit8024b9e9b284e8b120e4d02e0c07becd605c0095 (patch)
treea84784e0ee0d8e894275c80060a6f230fa318cb4
parente4b9556646197f0a652d78b140cd1aa76bd07d1e (diff)
downloadslackbuilder-8024b9e9b284e8b120e4d02e0c07becd605c0095.tar.gz
Remove PK debug scripts
-rw-r--r--.gitignore3
-rw-r--r--Rakefile4
-rwxr-xr-xdebug/PackageKit/PackageKit.rb75
3 files changed, 2 insertions, 80 deletions
diff --git a/.gitignore b/.gitignore
index 7f1b22b..188a4c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,6 +25,3 @@
/config/config.rb
/vendor/
/.bundle/
-
-/debug/PackageKit/PackageKit/
-/debug/PackageKit/package/
diff --git a/Rakefile b/Rakefile
index f503b13..0ddf3d1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -11,8 +11,8 @@ require_relative 'lib/package'
require_relative 'lib/download'
task :dmd do
- version = '2.097.2'
- dub_version = '1.26.1'
+ version = '2.098.1'
+ dub_version = '1.27.0'
dscanner_version = '0.11.1'
dcd_version = '0.13.6'
tarball_name = "dmd.#{version}.linux.tar.xz"
diff --git a/debug/PackageKit/PackageKit.rb b/debug/PackageKit/PackageKit.rb
deleted file mode 100755
index f093de7..0000000
--- a/debug/PackageKit/PackageKit.rb
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/usr/bin/env ruby
-# 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/.
-
-# frozen_string_literal: true
-
-# This script creates a debug PackageKit build used for development.
-# For the script to work PackageKit source should be in the ./PackageKit
-# directory alongside this script.
-
-require 'rake/file_utils'
-require 'pathname'
-require 'rake'
-require 'open3'
-
-CWD = Pathname.new Dir.pwd
-SOURCE = CWD + 'PackageKit'
-TMP = CWD + 'tmp'
-DESTINATION = CWD + 'package'
-BUILD = 1
-ARCH = `uname -m`.strip
-
-FileUtils.rm_rf [TMP, DESTINATION]
-Dir.mkdir TMP
-
-version = `git -C #{SOURCE} describe --tags --abbrev=0`
- .strip
- .delete_prefix('PACKAGEKIT_')
- .gsub('_', '.')
-
-sh 'meson',
- '--buildtype=debug',
- '--prefix=/usr',
- '--libdir=/usr/lib64',
- '--localstatedir=/var',
- '--mandir=/usr/man',
- '--sysconfdir=/etc',
- '-Dsystemd=false',
- '-Doffline_update=false',
- '-Dbash_completion=false',
- '-Dbash_completion_not_found=false',
- '-Dpackaging_backend=slack',
- '-Ddaemon_tests=true',
- TMP.to_s,
- SOURCE.to_s
-
-sh({ 'DESTDIR' => DESTINATION.to_s },
- 'ninja', '-C', TMP.to_s, 'install')
-
-actual_mandir = DESTINATION + 'usr/share/man/man1'
-mandir = DESTINATION + 'usr/man/man1'
-FileUtils.mkdir_p mandir
-Dir.new(actual_mandir).each_child do |entry|
- manpage = actual_mandir + entry
-
- Open3.popen3 'gzip', '--stdout', '-9', manpage.to_s do |stdin, stdout, stderr, wait_thr|
- File.open (mandir + "#{entry}.gz").to_s, 'wb' do |file|
- stdin.close
-
- IO.copy_stream stdout, file
- IO.copy_stream stderr, $stderr
-
- stdout.close
- stderr.close
- wait_thr.value
- end
- end
-end
-FileUtils.rm_rf (DESTINATION + 'usr/share/man').to_s
-
-Dir.chdir DESTINATION
-package_path = CWD + "PackageKit-#{version}-#{ARCH}-#{BUILD}_debug.txz"
-puts "Building #{package_path}"
-system '/sbin/makepkg', '-l', 'y', '-c', 'n', package_path.to_s