Files
chromebrew/packages/template.rb.template
supechicken babb17195e Update package template (#7430)
* Update package template

* Fix order

* Add suggested changes

* Fix grammar

* Add suggested changes

* Add suggested changes
2022-09-28 09:35:50 -05:00

77 lines
1.7 KiB
Ruby

#!/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 ''
# Optional: Prebuilt binary
# binary_url ({
# aarch64: '',
# armv7l: '',
# i686: '',
# x86_64: '',
# })
# binary_sha256 ({
# aarch64: '',
# armv7l: '',
# i686: '',
# x86_64: '',
# })
# Register dependencies (use the following line as a basis)
#
# depends_on '*'
#
# 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