How to build a .deb of 1.5.3 for Ubuntu

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Schuttwegraeumer
Posts: 33
Joined: August 25th, 2008, 12:13 pm

Re: How to build a .deb of 1.5.3 for Ubuntu

Post by Schuttwegraeumer »

Ok, this methode worked:

Code: Select all

scons wesnoth datadir=/usr/share/games/wesnoth
sudo checkinstall --install=no scons install
The path must be modified from /usr/share/games to /usr/share/games/wesnoth or to /usr/share/wesnoth because datadir is not the preset but the programm path.
The disadvantage of this methode is that the second line compiles the stuff again, but why?
User avatar
loonycyborg
Windows Packager
Posts: 295
Joined: April 1st, 2008, 4:45 pm
Location: Russia/Moscow

Re: How to build a .deb of 1.5.3 for Ubuntu

Post by loonycyborg »

Schuttwegraeumer wrote: The disadvantage of this method is that the second line compiles the stuff again, but why?
Some weird scons bug causes some files to be recompiled during install. This bug won't occur if you do it like this:

Code: Select all

scons wesnoth datadir=/usr/share/games/wesnoth
sudo checkinstall --install=no scons install --implicit-deps-unchanged
Or you may skip compile stage altogether:

Code: Select all

sudo checkinstall --install=no scons wesnoth install datadir=/usr/share/games/wesnoth
This will both build and install.
"meh." - zookeeper
Schuttwegraeumer
Posts: 33
Joined: August 25th, 2008, 12:13 pm

Re: How to build a .deb of 1.5.3 for Ubuntu

Post by Schuttwegraeumer »

Ahhhh, perfekt!!11

Ok, its too late for the last line because the compiling is on the way.
But the installing without recompiling won't take much time.
Post Reply