# Maintainer: Tofe <chris.chapuis@gmail.com>
# Contributor: zhuqin <zhuqin83@gmail.com>
# Contributor: tri1976 <trile7@gmail.com>
# Contributor: snoopy33
# Contributor: 4javier
pkgname=cairo-dock-plug-ins
_pkgname=cairo-dock-plugins
pkgver=3.1.1
_pkglaunchpadrel=3.1.1
pkgrel=0
pkgdesc="Plugins for cairo-dock"
url="https://launchpad.net/cairo-dock"
license="GPL"
arch=('i686' 'x86_64')
depends=("cairo-dock" 'libxxf86vm' 'vte' 'alsa-lib' 'gvfs' 'upower' 'libdbusmenu-gtk3')
optdepends=('libzeitgeist: to enable the Recent-Events applet' 'webkit: to enable the Weblet applet' 'indicator: to enable the Indicator applet' 'ruby: to support applets written in Ruby' 'mono: to support applets written in Mono/.Net' 'libpulse: to enable the Impulse applet' 'fftw: to enable the Impulse applet' 'libetpan: to enable the Mail applet' 'ido: to enable the Indicator applet' 'indicator-me: to enable the Me-Messaging applet')
makedepends=('cmake' 'pkgconfig' 'libtool')
options=('!libtool')
source=(http://launchpad.net/$pkgname/3.1/$_pkglaunchpadrel/+download/$_pkgname-$pkgver.1.tar.gz applet-host-ias.patch indicator-dbusmenu.patch)
md5sums=('e2605bdf3844e715dc5f02670a4abfd2' '28ae9bce2bced1a8270a94ec43993103' 'feeb1ac79f0c89a538a4bea197ca4593')
build() {
cd $srcdir/cairo-dock-plugins-3.1.1
patch -p1 < $srcdir/applet-host-ias.patch
patch -p0 < $srcdir/indicator-dbusmenu.patch
[[ -e build ]] || mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DROOT_PREFIX=$startdir/pkg \
-Denable-network-monitor=yes \
-Denable-disks=yes \
-Denable-doncky=yes \
-Denable-scooby-do=yes
make
}
package() {
cd $srcdir/$_pkgname-$pkgver/build
make install DESTDIR=$pkgdir
}