20.x_exec

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

#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

Last updated