harilvfs

x

Jan 15th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. #!/SBUILD ver @v1.0.0
  2. #SELF: https://raw.githubusercontent.com/pkgforge/soarpkgs/refs/heads/main/packages/flameshot/appimage.stable.yaml
  3. _disabled: false
  4.  
  5. pkg: "flameshot"
  6. pkg_id: "github.com.flameshot-org.flameshot"
  7. pkg_type: "appimage"
  8. app_id: "github.com.flameshot-org.flameshot"
  9. build_util:
  10. - "curl#bin"
  11. - "jq#bin"
  12. category:
  13. - "screenshot software"
  14. - "image editing"
  15. - "utilities"
  16. description: "Powerful yet simple to use screenshot software"
  17. distro_pkg:
  18. alpine:
  19. - "flameshot"
  20. archlinux:
  21. aur:
  22. - "flameshot"
  23. nixpkgs:
  24. - "flameshot"
  25. homepage:
  26. - "https://flameshot.org/"
  27. - "https://github.com/flameshot-org/flameshot"
  28. maintainer:
  29. - "Azathothas (https://github.com/Azathothas)"
  30. repology:
  31. - "flameshot"
  32. license:
  33. - "GPL-3.0"
  34. src_url:
  35. - "https://github.com/flameshot-org/flameshot"
  36. tag:
  37. - "screenshot"
  38. - "capture"
  39. - "image-editing"
  40. - "gui"
  41. - "gnu-linux"
  42. x_exec:
  43. shell: "bash"
  44. pkgver: |
  45. curl -qfsSL "https://api.gh.pkgforge.dev/repos/flameshot-org/flameshot/releases?per_page=100" \
  46. | jq -r '.[] | .assets[].name | select(test("x86_64\\.AppImage$"))' \
  47. | sed -E 's/Flameshot-([0-9\\.]+)\\.x86_64\\.AppImage/\1/' \
  48. | sort --version-sort \
  49. | tail -n 1
  50. run: |
  51. # Download
  52. RELEASE_TAG="$(curl -qfsSL "https://api.gh.pkgforge.dev/repos/flameshot-org/flameshot/releases?per_page=100" \
  53. | jq -r '[.[] | select(.draft == false and .prerelease == false)] | .[0].tag_name' | tr -d '[:space:]')"
  54. case "$(uname -m)" in
  55. aarch64)
  56. echo -e "\n[✗] aarch64 is not yet supported for Flameshot AppImage\n"
  57. exit 1
  58. ;;
  59. x86_64)
  60. soar dl "https://github.com/flameshot-org/flameshot/releases/download/${RELEASE_TAG}" \
  61. --match "x86_64.AppImage" --exclude "aarch64,arm,zsync" -o "./${PKG}" --yes
  62. ;;
  63. *)
  64. echo -e "\n[✗] Unsupported architecture: $(uname -m)\n"
  65. exit 1
  66. ;;
  67. esac
  68.  
Advertisement
Add Comment
Please, Sign In to add comment