1 |
On Thu, Apr 21, 2016 at 8:28 PM, Daiajo Tibdixious <daiajo@×××××.com> wrote: |
2 |
> |
3 |
> Got src_install working except for mysterious (to me) problem: |
4 |
> src_install () { |
5 |
> into /opt |
6 |
> dobin usr/bin/runescape-launcher |
7 |
> |
8 |
> exeinto /opt/${PN} |
9 |
> doexe usr/share/games/runescape-launcher/runescape |
10 |
> |
11 |
> insinto /opt/${PN} |
12 |
> doins usr/share/games/runescape-launcher/runescape.png |
13 |
> |
14 |
> insinto /usr/share/applications |
15 |
> doins usr/share/applications/runescape-launcher.desktop |
16 |
> |
17 |
> insinto /usr/share/kde4/services |
18 |
> doins usr/share/kde4/services/*.protocol |
19 |
|
20 |
The insinto is the "to", the doins is the "from" - since the files are |
21 |
installed in the image at: |
22 |
|
23 |
/var/tmp/portage/games-rpg/RuneScape-2.2.2/image/usr/share/applications/*.protocol |
24 |
|
25 |
they're not being found by your doins, as it's looking for them at: |
26 |
|
27 |
/var/tmp/portage/games-rpg/RuneScape-2.2.2/image/usr/share/kde4/services/*.protocol |
28 |
|
29 |
IOW, try: |
30 |
|
31 |
insinto /usr/share/kde4/services |
32 |
doins usr/share/applications/*.protocol |
33 |
|
34 |
> |
35 |
> dodoc usr/share/doc/runescape-launcher/changelog.gz |
36 |
> |
37 |
> # usr/share/doc/runescape-launcher/copyright |
38 |
> |
39 |
> for size in 16 24 32 48 64 256 512; do |
40 |
> doicon -s ${size} |
41 |
> usr/share/icons/hicolor/${size}x${size}/apps/runescape.png |
42 |
> done |
43 |
> } |
44 |
> |
45 |
> Everything works fine except for the 2 protocol files: |
46 |
> # find /var/tmp/portage/games-rpg/RuneScape-2.2.2/image -name "*.protocol" |
47 |
> /var/tmp/portage/games-rpg/RuneScape-2.2.2/image/usr/share/applications/rs-launchs.protocol |
48 |
> /var/tmp/portage/games-rpg/RuneScape-2.2.2/image/usr/share/applications/rs-launch.protocol |
49 |
> |
50 |
> Despite saying insinto kde4 services, they go into applications, which |
51 |
> is the previous location. |
52 |
> |
53 |
> On Thu, Apr 21, 2016 at 12:58 PM, Daiajo Tibdixious <daiajo@×××××.com> wrote: |
54 |
> > Thanks very much for that. I managed to get the fetch & unpack |
55 |
> > working, but nothing |
56 |
> > I tried for src_install worked, and your code is much neater than mine. |
57 |
> > |
58 |
> > On Thu, Apr 21, 2016 at 9:59 AM, Jonathan Callen <jcallen@g.o> wrote: |
59 |
> >> On 04/18/2016 10:11 PM, Daiajo Tibdixious wrote: |
60 |
> >>> dpkg has a native gentoo version app-arch/dpkg but dpkg --unpack gave an error. |
61 |
> >>> However ar x worked fine. |
62 |
> >>> Ended up with usr/bin/runescape-launcher which is fine, but also |
63 |
> >>> usr/share stuff which I'll check for collisions. |
64 |
> >>> (this is all in /var/tmp) |
65 |
> >>> |
66 |
> >>> Thanks very much, you saved me much trouble. |
67 |
> >>> |
68 |
> >>> Not sure if its just me, but apt is written in c++ using mostly C |
69 |
> >>> constructs, and doesn't seem to have been through an oo design. |
70 |
> >>> Makes it very weird to try to follow. |
71 |
> >>> |
72 |
> >>> I won't be able to install/run it today due to being busy. |
73 |
> >>> |
74 |
> >> |
75 |
> >> Attached is my attempt at a proper ebuild for this package. The |
76 |
> >> dependencies are based on what the deps *should* have been, not what the |
77 |
> >> .deb actually declares. I haven't actually tested this fully. |
78 |
> >> |
79 |
> >> -- |
80 |
> >> Jonathan Callen |
81 |
> |