1 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
2 # Contributor: Charles Lindsay <charles@chaoslizard.org>
3 # Maintainer: Alexsandr Pavlov <kidoz at mail dot ru>
7 pkgdesc="GNOME panel applet controlling cdemu-daemon"
9 url="http://cdemu.sourceforge.net/"
11 depends=('cdemu-daemon' 'dbus-python' 'python2' 'python2-gconf' 'python2-gobject2' 'pygtk' 'python-notify' 'python-rsvg')
12 makedepends=('intltool')
13 install=gcdemu.install
14 source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.gz)
15 md5sums=('28f8fbe94b63a8cc52c861afe45bd374')
18 cd "$srcdir/$pkgname-$pkgver"
19 sed -i '18s/false/true/g' data/gcdemu.schemas.in
20 sed -i '1s/python/python2/g' src/gcdemu
21 ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/bin PYTHON=python2
26 cd "$srcdir/$pkgname-$pkgver"
27 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
28 install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
29 gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain gcdemu ${pkgdir}/etc/gconf/schemas/*.schemas