dpkg has a native gentoo version app-arch/dpkg but dpkg --unpack gave an error. However ar x worked fine. Ended up with usr/bin/runescape-launcher which is fine, but also usr/share stuff which I'll check for collisions. (this is all in /var/tmp)
Thanks very much, you saved me much trouble. Not sure if its just me, but apt is written in c++ using mostly C constructs, and doesn't seem to have been through an oo design. Makes it very weird to try to follow. I won't be able to install/run it today due to being busy. On Tue, Apr 19, 2016 at 10:56 AM, Jonathan Callen <jcal...@gentoo.org> wrote: > On 04/18/2016 08:49 AM, Mark Knecht wrote: >> On Mon, Apr 18, 2016 at 5:40 AM, Daiajo Tibdixious >> <dai...@gmail.com> wrote: >> >>> A package I wish to download has these instructions: >>> >>> wget -O - >>> http://content.runescape.com/a=946/downloads/ubuntu/runescape.gpg.key >>> >>> > | apt-key add - >>> mkdir -p /etc/apt/sources.list.d echo "deb >>> http://content.runescape.com/a=946/downloads/ubuntu trusty >>> non-free" > /etc/apt/sources.list.d/runescape.list apt-get >>> update apt-get install -y runescape-launcher >>> >>> I have downloaded the apt sources and have been reading it. >>> However its fairly large & complex which will take me a while to >>> figure out. The gpg key was fairly easy, but I don't see how >>> apt-get uses it yet. I also don't see how apt gets the list of >>> files to download, since there is only a directory given. I can't >>> displayhttp://content.runescape.com/a=946/downloads/ubuntu in a >>> browser. >>> >>> Just wondering if anyone has anything helpful to shorten the >>> process of figuring it out. I'm planning to create a cut down >>> apt-get which just fetches the files, but don't have much time >>> most days. >>> >>> >> In my experience if you're running Gentoo you're better off staying >> in the Gentoo package framework and finding the app you want in a >> portage overlay: >> >> https://gpo.zugaina.org/games-rpg/unix-runescape-client >> > > To approximate what the apt-get client actually does; first download > "http://content.runescape.com/a=946/downloads/ubuntu/trusty/Release" > (URL given + distversion + "/Release); note the MD5/SHA1/SHA256 checksums. > > Download the 64-bit Packages file from > "http://content.runescape.com/a=946/downloads/ubuntu/dists/trusty/non-free/binary-amd64/Packages", > this will give the name/version/dependencies for every package > distributed from that repo. > > From that file, find the "Filename:" field, append that directly to > the URL they gave, so > "http://content.runescape.com/a=946/downloads/ubuntu/pool/non-free/r/runescape-launcher/runescape-launcher_2.2.2_amd64.deb". > > This file declares the following dependencies: > > Ubuntu > Gentoo Equivalent > libsdl2-2.0-0 (>= 2.0.2+dfsg1-3ubuntu1.1) > >=media-libs/libsdl2-2.0.2 > [This doesn't appear to actually be used by the executable] > libglew1.10 (>= 1.10.0-3) > >=media-libs/glew-1.10.0:0/1.10 > [This doesn't appear to actually be used by the executable] > libc6 (>= 2.19-0ubuntu6.6) > >=sys-libs/glibc-2.19 > libcurl3-gnutls (>= 7.35.0-1ubuntu2.5) > >=net-misc/curl-7.35.0 > libstdc++6 (>= 4.8.4-2ubuntu1~14.04) > >=sys-devel/gcc-4.8.4[cxx] > libgcc1 (>= 1:4.9.1-0ubuntu1) > >=sys-devel/gcc-4.9.1 > libvorbisenc2 (>= 1.3.2-1.3ubuntu1) > >=media-libs/libvorbis-1.3.2 > [This doesn't appear to actually be used by the executable] > libwebkitgtk-1.0-0 (>= 2.4.8-1ubuntu1~ubuntu14.04.1) > >=net-libs/webkit-gtk-2.4.8:2 (I think) > > The package also depends on the following shared libraries, not > exposed above: > > dev-libs/glib:2 > libglib-2.0.so.0 > libgobject-2.0.so.0 > media-libs/libpng:1.2 > libpng12.so.0 > x11-libs/libXxf86vm > libXxf86vm.so.1 > x11-libs/gtk+:2 > libgdk-x11-2.0.so.0 > libgtk-x11-2.0.so.0 > x11-libs/gdk-pixbuf:2 > libgdk_pixbuf-2.0.so.0 > x11-libs/libX11 > libX11.so.6 > x11-libs/cairo > libcairo.so.2 > x11-libs/libSM > libSM.so.6 > x11-libs/pango > libpango-1.0.so.0 > libpangocairo-1.0.so.0 > > To extract the .deb, if you don't have dpkg installed, you can use `ar > x ./runescape-launcher_2.2.2_amd64.deb data.tar.xz` to get a tarball > named "data.tar.xz" that contains the actual binary package. > > Note that the only thing that was really Gentoo-specific in the above > was the mapping of libraries to package names/slots/versions. > Everything else is "Generic Linux amd64" :). > > -- > Jonathan Callen >