xdeb-org / xdeb-install

Simple tool to automatically download, convert, and install DEB packages on Void Linux via the awesome xdeb tool.
MIT License
5 stars 2 forks source link

Rewrite the script in Go #2

Closed thetredev closed 11 months ago

thetredev commented 11 months ago

I lack the bash knowledge to handle the level of complexity the script is going to have since https://github.com/thetredev/xdeb-install/commit/75fd4708f8f4b896cc247e8d3f64f0f30857354a

thetredev commented 11 months ago

Add a search mechanic:

$ xbps-install search 0ad
debian.org/main
  distribution: bookworm
  version: 0.0.26-3
  url: http://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.0.26-3_amd64.deb
  sha256: 3a2118df47bf3f04285649f0455c2fc6fe2dc7f0b237073038aa00af41f0d5f2

debian.org/main
  distribution: bullseye
  version: 0.0.23.1-5+b1
  url: http://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.0.23.1-5+b1_amd64.deb
  sha256: 610e9f9c41be18af516dd64a6dc1316dbfe1bb8989c52bafa556de9e381d3e29

debian.org/main
  distribution: bullseye-backports
  version: 0.0.26-2~bpo11+1
  url: http://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.0.26-2~bpo11+1_amd64.deb
  sha256: 0227b35141d03e9f9c7b5be977cd7abbfcca169a40a81e9e8d262e1c48561a51

debian.org/main
  distribution: buster
  version: 0.0.23.1-2
  url: http://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.0.23.1-2_amd64.deb
  sha256: fb5c3af6d1d7cd7f1d3e8d2e04c1b8605b8c38f85e5c285a21c56eaf72f2bb47

debian.org/main
  distribution: sid
  version: 0.0.26-4
  url: http://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.0.26-4_amd64.deb
  sha256: eeeef3c51bad3af023ff2b776a58a2f59b5a3376f1be6c5f464e7ce3712b57a2

debian.org/main
  distribution: testing
  version: 0.0.26-4
  url: http://ftp.debian.org/debian/pool/main/0/0ad/0ad_0.0.26-4_amd64.deb
  sha256: eeeef3c51bad3af023ff2b776a58a2f59b5a3376f1be6c5f464e7ce3712b57a2