You are not logged in.

#1 2012-10-02 17:55:54

rnarch
Member
Registered: 2012-03-17
Posts: 292

SOLVED_Need PKGBUILD for sherman's aquarium

How can I get a PKGBUILD for sherman's aquarium (http://aquariumapplet.sourceforge.net/) ?  It is not there in AUR.  Thanks for your help.

Last edited by rnarch (2012-10-03 01:32:30)

Offline

#2 2012-10-02 18:06:02

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: SOLVED_Need PKGBUILD for sherman's aquarium

Any idea if that still works or even compiles? Last release was over 7 years ago.

Offline

#3 2012-10-02 18:11:55

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: SOLVED_Need PKGBUILD for sherman's aquarium

I think this would go in the PKGBUILD request section, not newbie corner.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-10-02 18:40:22

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: SOLVED_Need PKGBUILD for sherman's aquarium

rnarch wrote:

How can I get a PKGBUILD for sherman's aquarium

You can write one.

Last edited by WorMzy (2012-10-02 18:41:53)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2012-10-02 18:51:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SOLVED_Need PKGBUILD for sherman's aquarium

Moving to AUR Discussions & PKGBUILD Requests...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-10-02 18:59:26

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: SOLVED_Need PKGBUILD for sherman's aquarium

If you just want to build this for yourself, why not just try building it the old-fashioned way (download, untar, ./configure, make).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#7 2012-10-03 01:18:26

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: SOLVED_Need PKGBUILD for sherman's aquarium

I tried following PKGBUILD, but it fails in build()   (I ran it with command makepkg --skipinteg)

pkgname=shermans_aquarium
pkgver=3.0.1              
pkgrel=1                    
source=(shermans_aquarium-3.0.1.tar.bz2)      #file is already downloaded
arch=('i686' 'x86_64')

build() {
  cd $srcdir/$pkgname-$pkgver       
  ./configure  || return  1       
  make  || return 1           
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install || return 1   
}

The last few lines of output are:

screensaver.c: In function ‘screensaver_main_sdl’:
screensaver.c:304:13: warning: variable ‘totaltime1’ set but not used [-Wunused-but-set-variable]
screensaver.c: In function ‘aquarium_install_path’:
screensaver.c:927:5: warning: pointer targets in return differ in signedness [-Wpointer-sign]
gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -Wno-strict-aliasing -O3 -DIMAGE_PATH=\"/usr/local/share/pixmaps/shermans\"    -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15     -c -o grabscreen.o grabscreen.c
gcc -o shermans fish.o background.o bubble.o draw.o bottom.o soundeffects.o images.o screensaver.o grabscreen.o -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/lib -lSDL -lpthread  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 
/usr/bin/ld: grabscreen.o: undefined reference to symbol 'XSetWindowBackgroundPixmap'
/usr/bin/ld: note: 'XSetWindowBackgroundPixmap' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [shermans] Error 1
make[1]: Leaving directory `/home/cardio/sherman-aquarium/src/shermans_aquarium-3.0.1/shermans'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by rnarch (2012-10-03 01:25:41)

Offline

#8 2012-10-03 01:22:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: SOLVED_Need PKGBUILD for sherman's aquarium

Take a look at the error, then add "-lX11" to the linker line.

Edit: add the following line between configure and make

sed -i 's|^\(LDFLAGS_SDL.*$\)|\1 -lX11|' shermans/Makefile

Last edited by Trilby (2012-10-03 01:25:23)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2012-10-03 01:31:44

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: SOLVED_Need PKGBUILD for sherman's aquarium

Yes, it worked! Thanks very much. Marking this thread as solved.

Last edited by rnarch (2012-10-03 01:32:06)

Offline

Board footer

Powered by FluxBB