want a makefile for the tmw-branding package
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
want a makefile for the tmw-branding package
In order to make life easier for packagers, the 'tmw-branding' package should have a makefile, with appropriate variables allowing editing the currently hard-coded paths.
I could do this, but as it's completely isolated from everything else, so it would be a good, simple, task for someone else to do.
For the bug request, see https://github.com/themanaworld/tmw-branding/issues/2
For the kind of things it needs to do, see http://sources.gentoo.org/cgi-bin/viewv ... iew=markup
I could do this, but as it's completely isolated from everything else, so it would be a good, simple, task for someone else to do.
For the bug request, see https://github.com/themanaworld/tmw-branding/issues/2
For the kind of things it needs to do, see http://sources.gentoo.org/cgi-bin/viewv ... iew=markup
Former programmer for the TMWA server.
Re: want a makefile for the tmw-branding package
Probably a bit easier to understand for human beings:
desktop-file is basically just an install + validation
However i do not get why this needs a Makefile.
Just do a script that runs those install commands + adds a prefix variable.
Regards
Ablu
Code: Select all
install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -p -m 644 data/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -p -m 644 %{name}.mana %{buildroot}%{_datadir}/%{name}/%{name}.mana
mv data/ %{buildroot}%{_datadir}/%{name}/
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
However i do not get why this needs a Makefile.
Just do a script that runs those install commands + adds a prefix variable.
Regards
Ablu
Re: want a makefile for the tmw-branding package
The primary problem is that the path to tmw.mana must be hard coded in the script and menu entry, and the paths are different on different distributions.
Also, it's usually only one like of code to package something that is just "make; make install", instead of several.
Also, it's usually only one like of code to package something that is just "make; make install", instead of several.
Former programmer for the TMWA server.
Re: want a makefile for the tmw-branding package
I pushed make file for tmw branding in manaplus repo.
Also updated some help files
Also updated some help files
Re: want a makefile for the tmw-branding package
1. it doesn't work; it leaves ${prefix} in tmw.desktop, automake doesn't like being abused like this.4144 wrote:I pushed make file for tmw branding in manaplus repo.
2. I need a solution in the tmw-branding repository, not in manaplus
Former programmer for the TMWA server.
Re: want a makefile for the tmw-branding package
1. if ${prefix} was in path it left it here, if in path was no variables, it will be without variables.o11c wrote:1. it doesn't work; it leaves ${prefix} in tmw.desktop, automake doesn't like being abused like this.4144 wrote:I pushed make file for tmw branding in manaplus repo.
2. I need a solution in the tmw-branding repository, not in manaplus
I think ./configure --datadir=/real/path/here will fix ${prefix} issue.
2. In repository some files have mana as binary, wrong servers list, and it overriding some files in help directory with wrong versions.