Home

Awesome

uppm-formula-repository-linux-x86_64

the offical formula repository for uppm

uppm formula

a uppm formula is a YAML format file which is used to config a uppm package's meta-information including one sentence description, package version, installation instructions, etc.

uppm formula scheme

KEYrequired?overview
summaryrequiredDescribe this package in one sentence.
webpagerequiredthe home webpage url of this package.
licenseoptionala space-separated list of SPDX license short identifiers
versionoptionalthe version of this package.<br>If this mapping is not present, it will be calculated from bin-url
bin-urlrequiredthe prebuild binary file download url of this package.
bin-sharequiredthe sha256sum of the prebuild binary file.
dep-pkgoptionala space-separated list of package names. these packages will be used when installing or runtime.
installoptionalPOSIX shell code to be run when installing.<br>If this mapping is not present, and if bin-url mapping's value ends with one of .zip .tar.xz .tar.gz .tar.lz .tar.bz2 .tgz .txz .tlz .tbz2, uppm will uncompress it to $PKG_INSTALL_DIR for you. otherwise, just copy it to $PKG_INSTALL_DIR

Appendix: shell variables that can be used in install block

variableoverview
NATIVE_OS_ARCHcurrent machine os arch.
NATIVE_OS_KINDcurrent machine os kind.
NATIVE_OS_TYPEcurrent machine os type.
NATIVE_OS_NAMEcurrent machine os name.
NATIVE_OS_VERScurrent machine os version.
NATIVE_OS_NCPUcurrent machine os has how many cpu cores.
UPPM_VERSIONthe version of uppm.
UPPM_VERSION_MAJORthe major part of $UPPM_VERSION.
UPPM_VERSION_MINORthe minor part of $UPPM_VERSION.
UPPM_VERSION_PATCHthe patch part of $UPPM_VERSION.
UPPM_HOMEthe home directory of uppm.
UPPMthe executbale path of uppm.
PKG_SUMMARY
PKG_VERSION
PKG_LICENSE
PKG_WEBPAGE
PKG_BIN_URL
PKG_BIN_SHA
PKG_BIN_FILEPATH
PKG_BIN_FILENAME
PKG_BIN_FILETYPE
PKG_DEP_PKG
PKG_INSTALL_DIRthe directory where the current package will be installed to.