# $Id: PKGBUILD 200771 2013-12-04 20:14:29Z jgc $ # Maintainer: # Contributor: Andrea Scarpino pkgname=system-config-printer pkgver=1.4.3 pkgrel=2 pkgdesc="A CUPS printer configuration tool and status applet" url="http://cyberelk.net/tim/software/system-config-printer/" arch=('i686' 'x86_64' 'mips64el') license=('GPL') depends=('pycups' 'python2-dbus' 'pysmbc' 'python2-pycurl' 'dbus-glib' 'gnome-icon-theme' 'python2-notify' 'python2-gobject' 'gtk3') makedepends=('intltool' 'xmlto' 'docbook-xsl' 'desktop-file-utils') optdepends=('gnome-keyring: password management') replaces=('system-config-printer-common' 'system-config-printer-gnome') conflicts=('system-config-printer-common' 'system-config-printer-gnome') source=(http://cyberelk.net/tim/data/${pkgname}/${pkgver%*.*}/${pkgname}-${pkgver}.tar.xz{,.sig} 40_scp-dbus-service-fix-dbus-signature-typo.patch) md5sums=('99e251bfd281526fb6ea109b3e2bace3' 'SKIP' 'a616371aff9fae27b99d036c4143bf37') prepare() { cd ${pkgname}-${pkgver} patch -Np1 -i ../40_scp-dbus-service-fix-dbus-signature-typo.patch sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ $(find . -name '*.py') sed -i "s|#!/usr/bin/python|#!/usr/bin/python2|" udev/udev-add-printer } build() { cd ${pkgname}-${pkgver} PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --with-udev-rules make udevhelperdir=/usr/lib/udev } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" udevhelperdir=/usr/lib/udev \ udevrulesdir=/usr/lib/udev/rules.d install }