# $Id: PKGBUILD 55705 2011-09-17 21:15:47Z stephane $ # Maintainer : Ionut Biru # Contributor: Corrado 'bardo' Primier # Contributor: Tate "Tatey" Johnson pkgname=rss-glx pkgver=0.9.1 pkgrel=8 pkgdesc="The Really Slick Screensavers port to GLX" arch=('i686' 'x86_64') url="http://rss-glx.sourceforge.net/" license=('GPL') depends=('desktop-file-utils' 'freealut' 'glew' 'imagemagick') optdepends=('xscreensaver: xscreensaver integration') install=rss-glx.install options=('!libtool') source=(http://downloads.sourceforge.net/rss-glx/${pkgname}_${pkgver}.tar.bz2 rss-glx-desktops.tar.bz2) md5sums=('a772bd143cd8d141edf4d9eff9860ab3' '4211215c9a4918b0dff30a7000647dd9') build() { cd ${srcdir}/${pkgname}_${pkgver} [ "$CARCH" = "x86_64" ] && (sed -i -e 's|@LIBS@|@LIBS@ -fopenmp|g' src/Makefile.in) ./configure --prefix=/usr \ --mandir=/usr/share/man \ --program-transform-name='s/plasma/plasma_rss/' \ --with-configdir=/usr/share/xscreensaver/config \ --with-kdessconfigdir=/usr/share/applnk/System/ScreenSavers \ --enable-shared=yes --enable-static=no make CFLAGS="$CFLAGS -I/usr/include/ImageMagick" } package() { cd ${srcdir}/${pkgname}_${pkgver} make DESTDIR=${pkgdir} install # FS#18300 install -d ${pkgdir}/usr/lib/xscreensaver/ list=$(ls ${pkgdir}/usr/bin --ignore rss-glx_install.pl) for i in $list; do ln -s "/usr/bin/$i" "$pkgdir/usr/lib/xscreensaver/" done install -d ${pkgdir}/usr/share/applications/screensavers install -m644 ${srcdir}/${pkgname}-desktops/*.desktop ${pkgdir}/usr/share/applications/screensavers }