up-to-date packages, which can be added to an ubuntu (and Debian) system.
To add a new PPA repo, Ubuntu/Debian users can simply do:
Code: Select all
sudo add-apt-repository ppa:foo/bar
So, now Puppy users can do:
Code: Select all
ppa2pup ppa:foo/bar [debian|ubuntu] [bionic|artful|xenial|stretch|etc]
(the PPA URL) it will grab the ubuntu bionic PPA pkgs by default.
Override by supplying the 2nd and 3rd options.
Full usage info:
Code: Select all
This script creates a Puppy-compatible repo file from a PPA repo URL.
Usage: ppa2pup ppa:<user>/<repo> [debian|ubuntu] [bionic|stretch|artful|etc]
Examples:
ppa2pup ppa:team-xbmc/ppa
ppa2pup ppa:team-xbmc/ppa ubuntu bionic
ppa2pup ppa:team-xbmc/ppa ubuntu artful
ppa2pup ppa:team-xbmc/ppa debian stretch
It's not finished, but will do the following:
* find and download the relevant Packages.gz file of the PPA
* create a new puppy-compatible repo file from it
* install the repo, using Pkg
Example output:
Code: Select all
# ppa2pup ppa:freecad-maintainers/freecad-stable ubuntu bionic
Found URL:
http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu/dists/bionic/main/binary-i386/Packages.gz
File to create:
~/.packages/Packages-ubuntu-bionic-freecadmaintainers
Success! File created.
Repo 'bionic-freecad-maintainers' added successfully.
Adding repo: stretch-main..
Adding repo: noarch..
Adding repo: common..
Adding repo: stretch-contrib..
Adding repo: stretch-multimedia..
Adding repo: stretch-non-free..
Adding repo: bionic-libretro..
Adding repo: bionic-freecad-maintainers..
Sources updated.
Repo info:
- Repo: bionic-freecad-maintainers
- Repo file: Packages-ubuntu-bionic-freecadmaintainers
- Package Type: deb
- Packages: 27
- URL Mirror 1: http://ppa.launchpad.net
- Fall back to: bionic-libretro, stretch-main, noarch, common,
stretch-contrib, stretch-multimedia,
stretch-non-free
Success! Repo added and available to use.
To use this repo, simply type the following and hit ENTER:
pkg repo bionic-freecad-maintainers
Code: Select all
pkg add-ppa team-xbmc/ppa ubuntu bionic
Code: Select all
pkg rm-ppa team-xbmc/ppa ubuntu bionic
.. could also be improved to add the new repo to PetGet too .. ppa2pup would just need to update the ~/.packages/DISTRO_* files as well (i think)...