updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / gcdemu / PKGBUILD
blob38abf22702fb994f0cfdb269c2e06ab615d8623a
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>
4 pkgname=gcdemu
5 pkgver=1.4.0
6 pkgrel=2
7 pkgdesc="GNOME panel applet controlling cdemu-daemon"
8 arch=('i686' 'x86_64')
9 url="http://cdemu.sourceforge.net/"
10 license=('GPL2')
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')
17 build() {
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
22   make
25 package() {
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
30   rm -r ${pkgdir}/etc