class RBT::Cookbooks::Convert_PKGBUILD
Constants
- ARRAY_ENTRIES_WITHOUT_CORRESPONDING_VERSIONS
#¶ ↑
The following entries have no corresponding version.
epoch is an integer value, specific to Arch
Linux
, representing what ‘lifetime’ to compare version numbers against. This value allows overrides of the normal version comparison rules for packages that have inconsistent version numbering, require a downgrade, change numbering schemes, etc. By default, packages are assumed to have an epoch value of 0. Do not use this unless you know what you are doing.-
arch is an array of architectures that the PKGBUILD file is known
to build and work on. Currently, it should contain i686 or x86_64 or any for architecture-independent packages.
#¶ ↑
-
- DEFAULT_FILE
#¶ ↑
DEFAULT_FILE
¶ ↑#¶ ↑
- H
- HASH_MAP_PKGBUILD_VARIABLE_TO_COOKBOOK_ENTRY
#¶ ↑
HASH_MAP_PKGBUILD_VARIABLE_TO_COOKBOOK_ENTRY
¶ ↑Use a mapping, to map from PKGBUILD variables to our specific
Cookbook
entries. This may have to be updated every now and then.#¶ ↑
Public Class Methods
Public Instance Methods
#¶ ↑
process_data
¶ ↑
We work through @data here.
#¶ ↑
# File lib/rbt/utility_scripts/convert_pkgbuild.rb, line 110 def process_data @data.each { |line| case line when /^(pkgname)/, /^(pkgver)/, /^(pkgdesc)/, /^(url)/,/^(license)/,/^(depends)/, /^(makedepends)/ @hash[ H[$1] ] = split(line) end } _ = action(:SanitizeCookbook, @hash['program_name']) { :fast } _.clear(false) _.merge(@hash) _.set_archive_type('.tar.gz') # hardcoded for now. cliner e e tomato("DEBUG: STILL NOT FINISHED. SORRY.") e cliner end
#¶ ↑
reset¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/convert_pkgbuild.rb, line 85 def reset # ======================================================================= # # === @query # ======================================================================= # @query = nil # ======================================================================= # # === @hash # ======================================================================= # @hash = {} end