summaryrefslogtreecommitdiff
path: root/community/electricsheep/PKGBUILD
blob: 7cccb9b6731d74fe9f668345099f395653f549e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 62754 2012-01-25 20:28:55Z ebelanger $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=electricsheep
pkgver=2.7b12
pkgrel=5
pkgdesc="A screensaver that realize the collective dream of sleeping computers from all over the internet"
arch=('i686' 'x86_64')
url="http://community.electricsheep.org/"
license=('GPL')
depends=('curl' 'flam3' 'ffmpeg' 'mplayer' 'libglade')
makedepends=('xscreensaver')
optdepends=('xscreensaver: to use electricsheep with xscreensaver')
source=(ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.bz2
        electricsheep-ffmpeg.patch electricsheep-pref-segfault.patch)
sha1sums=('fd1c307912905ba456189efbb546ef0fe336fa32'
          'd6816e27c2a2f6c74ae61c99ad2d7fb28b1d1825'
          'bdf0f66fdbb5741671e8bb127bd76ef236d0e44a')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 -i "${srcdir}/electricsheep-ffmpeg.patch"
  patch -p1 -i "${srcdir}/electricsheep-pref-segfault.patch"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -d "${pkgdir}/usr/share/applications/screensavers"
  install -d "${pkgdir}/usr/lib/gnome-screensaver/gnome-screensaver"
  make DESTDIR="${pkgdir}" GNOME_SCREENSAVER_DATADIR="${pkgdir}/usr/share/applications/screensavers" \
    GNOME_SCREENSAVER_PRIVEXEDIR="${pkgdir}/usr/lib/gnome-screensaver/gnome-screensaver" install
  install -D -m644 electricsheep.desktop.kde "${pkgdir}/usr/share/kde4/services/ScreenSavers/electricsheep.desktop"
  install -D -m644 electricsheep.xml "${pkgdir}/usr/share/xscreensaver/config/electricsheep.xml"
  install -D -m755 electricsheep-saver "${pkgdir}/usr/bin/electricsheep-saver"
}