Edit: add the following line between configure and make
sed -i 's|^\(LDFLAGS_SDL.*$\)|\1 -lX11|' shermans/Makefile
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...
]]>How can I get a PKGBUILD for sherman's aquarium