Examples

A Few Examples

Minimal

#!/SBUILD ver @v1.0.0
_disabled: false
pkg: "86box"
build_util:
  - "curl#bin"
  - "jq#bin"
description: "Emulator of x86-based machines"
src_url:
 - "https://github.com/86Box/86Box"
x_exec:
  shell: "bash"
  pkgver: |
    #This will fetch the version and 
    curl -qfsSL "https://api.github.com/repos/86Box/86Box/releases/latest" | jq -r '.tag_name'
  run: |
    #Remember we are inside some random dir and we have got the env vars injected ($SBUILD_PKG etc)
    ##Download the file
    case "$(uname -m)" in
      aarch64)
        soar dl "https://github.com/86Box/86Box" --match "appimage,arm64" --exclude "x64,x86,zsync" -o "./${SBUILD_PKG}" --yes && chmod +x "./${SBUILD_PKG}"
        ;;
      x86_64)
        soar dl "https://github.com/86Box/86Box" --match "appimage,x86_64" --exclude "aarch64,arm,zsync" -o "./${SBUILD_PKG}" --yes && chmod +x "./${SBUILD_PKG}"
        ;;
    esac
    #We are done and can let the Runner take it from here
#!/SBUILD ver @v1.0.0
_disabled: false

pkg: "86box"
pkg_id: "github.com.86Box.86Box"
pkg_type: "AppImage"
app_id: "net._86box._86Box"
build_util:
  - "curl#bin"
  - "jq#bin"
category:
  - "Emulator"
description: "Emulator of x86-based machines"
distro_pkg:
  archlinux:
    aur:
      - "86box"
      - "86box-appimage"
      - "86box-git"
  nixpkgs:
    - "86Box"
homepage:
  - "https://86box.net"
  - "https://86box.readthedocs.io"
license:
  - "GPL-2+"
  - "GPL-2.0"
  - "GPL-2.0-only"
  - "GPL-2.0-or-later"
  - "GPL2"
  - "GPLv3"
  - "Unfree"
  - "spdx:GPL-2.0-or-later"
maintainer:
  - "Azathothas (https://github.com/Azathothas)"
note:
 - "Officially Created AppImage. Check/Report @ https://github.com/86Box/86Box"
 - "You need to download ROMS: https://86box.readthedocs.io/en/latest/usage/roms.html"
repology:
 - "86box"
src_url:
 - "https://github.com/86Box/86Box"
tag:
  - "app-emulation"
  - "emulators"
  - "game"
  - "system"
x_exec:
  shell: "bash"
  pkgver: |
    #This will fetch the version and save it as "./${SBUILD_PKG}.version" and env ${PKG_VER}
    curl -qfsSL "https://api.github.com/repos/86Box/86Box/releases/latest" | jq -r '.tag_name'
  run: |
    #Remember we are inside some random dir and we have got the env vars injected ($SBUILD_PKG etc)
    ##Download the file
    case "$(uname -m)" in
      aarch64)
        soar dl "https://github.com/86Box/86Box" --match "appimage,arm64" --exclude "x64,x86,zsync" -o "./${SBUILD_PKG}" --yes && chmod +x "./${SBUILD_PKG}"
        ;;
      x86_64)
        soar dl "https://github.com/86Box/86Box" --match "appimage,x86_64" --exclude "aarch64,arm,zsync" -o "./${SBUILD_PKG}" --yes && chmod +x "./${SBUILD_PKG}"
        ;;
    esac
    #We are done and can let the Runner take it from here

Last updated