Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upicebreaker 1.9.7 new recipe #633
Conversation
(listing of the package)
|
| highscoredir=$settingsDir mandir=$manDir install | ||
| mv $appsDir/icebreaker $appsDir/IceBreaker | ||
|
|
||
| addAppDeskbarSymlink $appsDir/IceBreaker IceBreaker |
This comment has been minimized.
This comment has been minimized.
fbrosson
Jun 11, 2016
Member
Since /boot/system/apps is in the default PATH, I think it would be slightly better to keep $appsDir/icebreaker lowercase and only use IceBreaker in the AppDeskbar.
It would also allow to drop the mv $appsDir/icebreaker $appsDir/IceBreaker.
You would just need to change the next line to addAppDeskbarSymlink $appsDir/icebreaker IceBreaker.
But that's just my personal taste, and I don't even know what the best practices are for these kinds of questions. My rationale is that commands we type on a terminal are always lowercase. Yep, I know this is not a unix command ;-)
Anyway, please feel free to ignore this remark. I won't be cry if you do ;-)
To all: do not hesitate to tell what your prefer between $appsDir/icebraker and $appsDir/IceBraker, keeping in mind that in the Applications menu you'll see it as IceBreaker anyway.
This comment has been minimized.
This comment has been minimized.
Begasus
Jun 11, 2016
Author
Contributor
Would be nice if there was a mutual understanding in this, for the moment ScummVM also resides as "ScummVM" in the $appsDir folder (instead of "scummvm") ...
This comment has been minimized.
This comment has been minimized.
Begasus
Jun 11, 2016
Author
Contributor
PS ... having icebreaker vs IceBreaker in the $appsDir doesn't change much, you can't launch if from a Terminal from another location ...
This comment has been minimized.
This comment has been minimized.
Begasus
Jun 12, 2016
Author
Contributor
"Since /boot/system/apps is in the default PATH" ok, this one I didn't know ;) I always installed the packages in config/packages (to try to keep the system apps dir not to big)
having "icebreaker" instead of "IceBreaker" in there looks a bit strang amongst the other apps there with Capitols ;)
This comment has been minimized.
This comment has been minimized.
fbrosson
Jun 12, 2016
•
Member
Oops, my mistake. You are perfectly right. Believe me or not, I had not noticed that all the apps in /boot/system/apps/ have capital letters!.
This means it is perfectly fine to keep the mv $appsDir/icebreaker $appsDir/IceBreaker*.
BTW, when you symlink something with addAppDeskbarSymlink you can ommit the second parameter if the name of the symlink is the same as that of the target. So, if you want, you can replace:
addAppDeskbarSymlink $appsDir/IceBreaker IceBreaker
by
addAppDeskbarSymlink $appsDir/IceBreaker
(I discovered that once when I had a look at a file called wrapper-script that haikuporter puts in the work-* subdirectory, work-1.9.7 when you build icebreaker-1.9.7. BTW, I browse this wrapper-script file very often.)
|
I haven't tried the recipe yet, but the |
You can also install one or more packages with |
|
The man is in the correct directory (only cp'ng the 'tree' here didn't put it in the correct order) :) |
|
PS, also noticed, the man file is installed when dropping (or installing with HaikuDepot), when dropping it in config/packages it isn't ... maybe someone could check this? |
|
Funny thing that
instead of
Regarding the other issue you mentioned, maybe packagefs is just picky with the contents of the package. |
|
with tree it does give me the correct ident, just copying it here somehow didn't catch up with that ... (qupzilla)* |
|
├── documentation 10 directories, 40 files |
|
hmm same with Web+ ... ident doesn't show correctly ... |
|
"Regarding the other issue you mentioned, maybe packagefs is just picky with the contents of the package." |
|
I think, the issue is that in haikuporter's chroot, when executing the BUILD() and INSTALL(), $settingsDir is always in the /system hierarchy. That pretty much "hard-codes" the package to use the system's settings folder. It'd be nice to have an icon and app-signature added with addResourcesToBinaries. Personally, I'm a fan of having GUI apps bein self-contained in a folder under $appsDir. No spreading into various subfolders. $dataDir looks quite messy in my system already... I'd even drop the man file and go with a proper html in the app's folder... |
|
@humdingerb: I see more $appsDir as an alternate $binDir dedicated to GUI apps. As a consequence, if some command or app needs data files, IMHO they should go to a subdirectory in $dataDir. But that's just my point of view and I don't want to push into one direction. I'll adhere to whatever concensus emerges. But for the moment the only apps which have their data in $appsDir are Vision and SMPlayer (and maybe a few others). The vast majority do not have data files under $appsDir (or do not have any data files at all.) |
|
added app-signature :) |
|
@Begasus , I have thrown together an icon that you may want to add to the rdef at https://gist.github.com/humdingerb/02ce782437b570e92c3bd15e55991e50 Should we add the IOM file as "additional file" so people can improve it? |
|
@humdingerb thanks! I've added and it looks nice :) |
|
If you are ok with it I can add it to the PR (the IOM file) |
| internal = 0, | ||
|
|
||
| short_info = "IceBreaker", | ||
| long_info = "An addictive action-puzzle game" |
This comment has been minimized.
This comment has been minimized.
fbrosson
Jun 12, 2016
•
Member
@Begasus, I've just noticed the indentation in the app_version block is made of white spaces. I guess you will want to use tabs instead.
|
Fixed the ident, thanks @fbrosson :) (ps I copied the text over from scummvm's rdef, so that probably suffers from the same isseu) |
|
@Begasus , sure, add the IOM. The icon could be improved by making the ice block more transparent and showing Tuxi's frozen flippers... |
|
@humdingerb, added it to the "additional files" folder ... |
Not exactly (see below).
No -- the correct way to do things is that if something lives in $appsDir, it lives exclusively in $appsDir, and is in no other part of the system. By contrast, apps like VLC 2.0+ and the like which want users to be able to start VLC from the command line with flags and the like should not be in $appsDir at all, but should be spread around bin, lib, etc. |
c97fdae
into
haikuports:master
|
@waddlesplash: You're quoting fbrosson...
Is this "the correct way" because you say so, or was there a discussion with that conclusion? |
|
@waddlesplash: OK, thanks for the explanation about the $appsDir vs $binDir issue. I got it now (and I buy it ;-) |
Begasus commentedJun 11, 2016
The app is working very nice, one this is still strange, if I copy the file into /config/packages the score file is not installed, if I copy the file to /system/packages the score file is installed ...