PkgForge
GithubSoar
  • Orgs
    • PkgForge (Core)
      • About
      • Projects
        • Soarpkgs
        • bincache
        • pkgcache
      • People
    • PkgForge-Community
    • PkgForge-Dev
      • Projects
        • Anylinux-AppImages
      • People
    • PkgForge-Security
      • Projects
        • CertStream
  • Soar
    • Soar (Docs)
    • Comparisons
      • 1. Candidates
      • 2. Dependencies
      • 3. Packages
      • 4. Security
  • Formats
    • Binaries
      • Dynamic
      • Static
        • Build Notes
          • Cargo (Rust)
          • GoLang
          • Make
          • Nim
          • Nix
          • Vlang
          • Zig (Musl)
        • Build Tests
    • Packages
      • Archive
      • AppBundle
      • AppImage
      • FlatImage
      • GameImage (TBD)
      • NixAppImage
      • RunImage
      • Errors & Quirks
        • Fonts
        • Fuse
        • Namespaces
        • Zsync
  • SBUILD
    • Introduction
    • Specification
      • 0.Prerequisite
      • 1.Shebang
      • 2.Pkg
      • 3.Version
      • 4.AppID
      • 5.BuildAsset
      • 6.BuildUtil
      • 7.Category
      • 8.Description
      • 9.Desktop
      • 10.DistroPkg
      • 11.HomePage
      • 12.Icon
      • 13.License
      • 14.Maintainer
      • 15.Note
      • 16.Provides
      • 17.Repology
      • 18.SourceURL
      • 19.Tag
      • 20.x_exec
    • Instructions
      • ENV_VARS (x_exec.run)
      • ENV_VARS (SBUILDER)
      • NEEDED_FILES
      • Examples
  • Repositories
    • soarpkgs
      • Contribution
      • Copy of DMCA | Copyright (Cease & Desist)
      • Differences
      • FAQ
      • Infra
      • Metadata
      • Package-Request
      • Security
    • bincache
      • Cache
      • Contribution
      • Differences
      • DMCA | Copyright (Cease & Desist)
      • FAQ
      • Infra
      • Metadata
      • Package-Request
      • Security
    • pkgcache
      • Cache
      • Contribution
      • Differences
      • DMCA | Copyright (Cease & Desist)
      • FAQ
      • Infra
      • Metadata
      • Package-Request
      • Security
    • external
      • AM
      • cargo-bins
      • appimage.github.io
      • AppImageHub
    • Nests
  • Contact
    • Chat
Powered by GitBook
On this page
  • Prerequisite
  • Write
  • Build

Was this helpful?

  1. SBUILD

Instructions

How to write an .SBUILD

Previous20.x_execNextENV_VARS (x_exec.run)

Last updated 4 months ago

Was this helpful?

Prerequisite

soar add 'bash/bash#base' \
'b3sum#bin' \
'curl#bin' \
'findutils/find#base' \
'grep/grep#base' \
'jq#bin' \
'sed#bin' \
'shellcheck#bin' \
'findutils/xargs#base' \
'yj#bin' \
'yq#bin' --yes

Write

!#Assuming You have READ & VERIFIED what the script contains
source <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/metadata/main/soarpkgs/scripts/repology_fetcher.sh")
#The function itself is `repology_fetcher` but is aliased to `repology-fetcher` for convenience
#If you don't want to source it, just download and save it somewhere in $PATH

!#Run it with the app/pkg_name
repology-fetcher "pkg_name"
#Example: repology-fetcher "librewolf"
!#Add it using Soar
soar add "sbuild-linter" "shellcheck"
#Or Download manually & Add to Path: https://github.com/pkgforge/sbuilder/releases

!#Run it with /path/to/your/SBUILD
sbuild-linter "./example.SBUILD"
#If it's not successful, fix your errors

!#To get pkgver
sbuild-linter "./example.SBUILD" --pkgver

Build

!#Add it using Soar
soar add "sbuild" "shellcheck"
#Or Download manually & Add to Path: https://github.com/pkgforge/sbuilder/releases

!#Run it with /path/to/your/SBUILD
sbuild "./example.SBUILD" --log-level "verbose" --keep --outdir "./SBUILD-TEST"
#If it's not successful, fix your errors

Read the :

View :

Copy the :

Use the :

Start Filling in the by Consulting an or the

After you are done, you can validate it using the :

If your SBUILD gets validated successfully, Congrats! You can now create a or an , Remember to Link/Copy&Paste the .validated version of your SBUILD

It is recommended you setup a sandbox or containerized environment before running arbitrary SBUILDs that have NOT been approved by a maintainer into

Install Soar
https://soar.qaidvoid.dev/install
bash
b3sum
curl
coreutils
file
findutils (find, xargs)
fuse3 (fusermount3)
gettext
grep
jq
sed
shellcheck
wget
yj
yq
Soar
Spec
https://docs.pkgforge.dev/sbuild/specification
some Examples
https://github.com/pkgforge/soarpkgs/tree/main/packages
Generic Template
https://github.com/pkgforge/soarpkgs/blob/main/templates/generic.SBUILD.yaml
Repology Fetcher
https://raw.githubusercontent.com/pkgforge/metadata/main/soarpkgs/scripts/repology_fetcher.sh
Generic Template
Example
SPEC
sbuild-linter
https://github.com/pkgforge/sbuilder
Pull Request
Issue
pkgforge/soarpkgs
Install sbuild