Battleship

If there's software you need and you can't find, make a request for it.
Post Reply
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Battleship

Post by Andyun »

Battleship - a small game for two players (human-computer). Dependencies: gtk+2.0, libcanberra-gtk.
Homepage: https://launchpad.net/battleship
Source code: https://launchpad.net/~finteis/+archive ... /+packages

Image
Last edited by Andyun on 7. Sep 2012, 01:05, edited 1 time in total.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Battleship

Post by mimosa »

I'll package it if you test my package ;)
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Battleship

Post by Andyun »

OK. My SLKBUILD (don't works sounds):

Code: Select all

pkgname=battleship
pkgver=0.47
pkgrel=111
source=("https://launchpad.net/~finteis/+archive/battleship/+files/battleship_0.47-1-0ubuntu1%7Equantal.tar.gz")
docs=("authors" "copying" "changelog" "install" "news" "readme")


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"battleship (Battleship Game)"
"You play versus a computer controlled opponent."
"Instead of firing blindly you get hints"
"about the enemy's ships' positions."
""
"Homepage: https://launchpad.net/battleship"
)


build() {
        cd $startdir/src/$pkgname-$pkgver

        ./configure \
           --prefix=/usr \
           --libdir=/usr/lib${LIBDIRSUFFIX} \
           --localstatedir=/var \
           --sysconfdir=/etc \
           --mandir=/usr/man
        make || return 1
        make DESTDIR=$startdir/pkg install
}
Last edited by Andyun on 19. Oct 2012, 19:57, edited 1 time in total.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Battleship

Post by mimosa »

Right so the problem is no sound effects, otherwise fine? I just built it myself (but not using your SLKBUILD, just by hand), and it worked beautifully, but as you say, no sound.

EDIT

By the way, I lost every time.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Battleship

Post by mimosa »

However, sound does work if you turn it on in preferences. Can you confirm whether this works with your package?

Very good sound effects btw!
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Re: Battleship

Post by Andyun »

In Salix 14.0 alpha1 and Live CD 13.37 the sounds of Battleship does not work.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Battleship

Post by mimosa »

I've made a package for it but sound still doesn't work. However, I suspect this is just because of unmet dependencies - such as libvorbis, which was uploaded to the repo recently. I'll try again in a week or two.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Battleship

Post by mimosa »

Everything that should be needed must have been packaged by now, but I still can't get it to work. Perhaps a patch is needed, but that's beyond my abilities. Alternatively, maybe an older version (from among those Ubuntu versions) might work.

I'm afraid I give up.

In case anyone is interested in pursuing this, I just found that I needed glibc-solibs to build it, which I don't think I did before. This is a build time dependency, not run time.
Post Reply