updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdeplasma-applet-switchy / PKGBUILD
blob8994822a650062f8235c30626d6804c464bc92be
1 # Contributor: Radu Andries  <admiral0 at tuxfamily.org>
3 pkgname=kdeplasma-applet-switchy
4 pkgver=1.0
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 pkgdesc="A plasmoid for kde4 using vga_switcheroo. Only switchable graphics"
8 url="https://github.com/admiral0/Switchy"
9 makedepends=("cmake" "automoc4")
10 depends=('kdebase-workspace')
11 license=('GPL')
12 source=("http://kde-look.org/CONTENT/content-files/136969-Switchy-1.0.tar.bz2" 
13         "vgad"
14         "org.admiral0.vgad.conf")
16 build() {
17   cd  $srcdir/Switchy/
18   if [ -d build ]; then
19     rm -rf build
20   fi
21   mkdir build
22   cd build
23   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
24   make
27 package() {
28   cd $srcdir/Switchy/build
29   make DESTDIR=$pkgdir install
30   install -D daemon/vgad $pkgdir/usr/bin/vgad
31   install -D client/vgac $pkgdir/usr/bin/vgac
32   install -D $srcdir/vgad $pkgdir/etc/rc.d/vgad
33   install -D $srcdir/org.admiral0.vgad.conf $pkgdir/etc/dbus-1/system.d/org.admiral0.vgad.conf
36 md5sums=('02dc6fd186aa82fe5da0de9d3d2ba303'
37          'd9cc95fcc86aedb4541dabc8c6ecb603'
38          '7d78ee23540fe0b876cf687e0d569312')