summaryrefslogtreecommitdiff
path: root/extra/system-config-printer
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-03 01:12:14 -0800
committerroot <root@rshg054.dnsready.net>2013-02-03 01:12:14 -0800
commite363875b14479aa4c6ff12f3e4e7ed920df4e45f (patch)
treeee217a27b050e82f4fa885a9671f09861fcf97d9 /extra/system-config-printer
parent2f5224819ae83de6e9d8de008d5f2dc24769cb0d (diff)
Sun Feb 3 01:12:00 PST 2013
Diffstat (limited to 'extra/system-config-printer')
-rw-r--r--extra/system-config-printer/PKGBUILD17
1 files changed, 9 insertions, 8 deletions
diff --git a/extra/system-config-printer/PKGBUILD b/extra/system-config-printer/PKGBUILD
index 13b62fca3..9d4ed52e6 100644
--- a/extra/system-config-printer/PKGBUILD
+++ b/extra/system-config-printer/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 171248 2012-11-16 22:37:18Z andrea $
+# $Id: PKGBUILD 176922 2013-02-02 17:50:55Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgbase=system-config-printer
pkgname=('system-config-printer-common'
'system-config-printer-gnome')
pkgver=1.3.12
-pkgrel=1
+pkgrel=2
pkgdesc="A CUPS printer configuration tool and status applet"
url="http://cyberelk.net/tim/software/system-config-printer/"
arch=('i686' 'x86_64')
@@ -17,16 +17,13 @@ md5sums=('0775647e1c34ef25364de3c178a4ed36'
'1aa2246047b424e2d23473749368b8c6')
build() {
- cd "${srcdir}"/${pkgbase}-${pkgver}
+ cd ${pkgbase}-${pkgver}
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
- # Fix build with udev 183
- sed -i 's:udev_get_sys_path (udev):"/sys":' udev/udev-configure-printer.c
-
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
@@ -44,7 +41,7 @@ package_system-config-printer-common() {
provides=("system-config-printer=${pkgver}")
conflicts=('system-config-printer')
- cd "${srcdir}"/${pkgbase}-${pkgver}
+ cd ${pkgbase}-${pkgver}
install -d "${pkgdir}"/usr/share/${pkgbase}
install -m644 config.py \
debug.py \
@@ -84,6 +81,9 @@ package_system-config-printer-common() {
install -Dm644 $file \
"${pkgdir}"/usr/lib/python2.7/site-packages/cupshelpers/$(basename $file)
done
+
+ install -Dm755 dbus/scp-dbus-service \
+ "${pkgdir}"/usr/bin/scp-dbus-service
}
package_system-config-printer-gnome() {
@@ -91,10 +91,11 @@ package_system-config-printer-gnome() {
depends=('system-config-printer-common' 'gnome-icon-theme' 'python2-notify')
optdependence=('gnome-keyring: password management')
- cd "${srcdir}"/${pkgbase}-${pkgver}
+ cd ${pkgbase}-${pkgver}
make DESTDIR="${pkgdir}" install
# files provided by system-config-printer-common
+ rm "${pkgdir}"/usr/bin/scp-dbus-service
cd "${pkgdir}"/usr/share/${pkgbase}
rm config.py \
debug.py \