Files
chromebrew/packages/template.rb.template
Satadru Pramanik, DO, MPH, MEng 5170c0b29f Add Ruby Getrealdeps (#9270)
* Add rubyized getrealdeps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* adjust documentation

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Have crew add missing dependencies after build

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* adjust logic

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add gawk message for getrealdeps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* bugfix

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Use puts

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* suggested changes

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fix missing dependency check

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fixup template

* Initial add of getrealdeps to crew

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* update getrealdeps command

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* add to README.md

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* collapse getrealdeps into a crew --deep option

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add punctuation.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add binary_compression line if it doesn't exist in the file.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fix variable

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fixup logic

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* fix upload logic, add triple backslashes

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* remove extra section in help

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-02-07 17:24:13 -06:00

58 lines
1.7 KiB
Ruby
Executable File

#!/usr/bin/env ruby <- This line is not necessary, just for GitHub's language detection
# It is recommended that you investigate other files in the 'packages/' directory
# to help get an idea of how existing packages are being installed through Chromebrew.
require 'package'
class Template < Package
description ''
homepage ''
version ''
license '' # Package license (eg. GPL-3, MIT, etc.)
compatibility '' # Package architecture compatibility (eg. aarch64, armv7l, i686, x86_64 or all)
source_url '' # The url to the source code (eg. https://ftpmirror.gnu.org/sed/sed-4.8.tar.xz)
source_sha256 ''
binary_compression 'tar.zst'
# These are needed to successfully build and check for dependencies.
binary_sha256({
aarch64: '000',
armv7l: '000',
i686: '111',
x86_64: '222'
})
# Register dependencies (use the following line as a basis)
#
# Runtime dependencies:
# depends_on '*' # R
# Build dependencies:
# depends_on '*' => :build
#
# Function to check if install should occur.
def self.preflight; end
# Function to perform patch operations prior to build from source.
def self.patch; end
# Function to perform pre-build operations prior to build from source.
def self.prebuild; end
# Function to perform build from source.
def self.build; end
# Function to perform check from source build.
# This is executed only during `crew build`.
def self.check; end
# Function to perform pre-install operations prior to install for both source build and binary distribution.
def self.preinstall; end
# Function to perform install from source build.
def self.install; end
# Function to perform post-install for both source build and binary distribution
def self.postinstall; end
end