20.x_exec

Code Execution that produces the Required Artifacts during SBUILD (TYPE: ENFORCED)

Main Fields

#Example ONLY
x_exec:
  shell: "bash" #Invokes /usr/bin/env ${SHELL}, bash in this case
  pkgver: |
    ${RAW SHELL CMDS TO FETCH VERSION}
  run: |
   ${RAW SHELL CMDS TO BUILD|DOWNLOAD|FETCH PACKAGE}

While, yes any shell is possible, Try using sh or bashas these are universal on almost all Distros

  • This will save the version in ${SBUILD_OUTDIR}/${SBUILD_PKG}.version & also export as ENV VAR ${PKG_VER}

  • You can reuse or overwrite it in run part, so be careful

  • You can just do echo 1.1.1 if you want to hardcode a particular version, though for that .pkgver exist

More Details: ENV_VARS (x_exec.run)

NEEDED_FILES


Additional Fields

arch

x_exec.arch is a NON_ENFORCED field


conflicts

x_exec.conflicts is a NON_ENFORCED field


depends

x_exec.depends is a NON_ENFORCED field


entrypoint

x_exec.entrypoint is a NON_ENFORCED field

When Installing, the ${SBUILD_OUTDIR}/${SBUILD_PKG} SYMLINK is resolved to realpath, and the symlink in SOAR_BINDIR points to a real file, NOT ANOTHER SYMLINK


os

x_exec.os is a NON_ENFORCED field


host

x_exec.host is a NON_ENFORCED field

Last updated

Was this helpful?