2013-11-18 02:50:43 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributor: Manuel Tortosa <manutortosa@chakra-project.org>
2012-06-23 17:03:55 +08:00
pkgname = "system-config-printer"
2013-05-05 16:21:06 +08:00
pkgver = 1.4.0
2013-11-18 02:50:43 +08:00
pkgrel = 6
2012-06-23 17:03:55 +08:00
pkgdesc = "A CUPS printer configuration tool and status applet"
url = "http://cyberelk.net/tim/software/system-config-printer/"
arch = ( 'any' )
license = ( 'GPL' )
2013-11-18 02:50:43 +08:00
depends = ( 'pycups' 'python2-dbus' 'pysmbc' 'libusb-compat' 'python-pycurl' )
2012-06-23 17:03:55 +08:00
makedepends = ( 'intltool' 'python2' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libcups' 'libxml2' )
2012-11-18 18:13:21 +08:00
optdepends = ( 'kdeadmin-print-manager: for the administration tool in KDE System Settings' )
2012-06-23 17:03:55 +08:00
provides = ( 'system-config-printer-common' )
2013-05-05 16:21:06 +08:00
source = ( http://cyberelk.net/tim/data/${ pkgname } /1.4/${ pkgname } -${ pkgver } .tar.xz{ ,.sig} )
md5sums = ( '3267c2eac454f470c0659034196d2668'
'bbd7884b13824713ab683418d26f6cb6' )
2012-06-23 17:03:55 +08:00
build( ) {
2012-11-18 18:13:21 +08:00
cd " ${ srcdir } " /${ pkgname } -${ pkgver }
2012-06-23 17:03:55 +08:00
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
./configure --prefix= /usr \
--sbindir= /usr/bin \
--sysconfdir= /etc \
--with-udev-rules
make
}
package( ) {
2013-05-05 16:21:06 +08:00
cd ${ pkgname } -${ pkgver }
make DESTDIR = " ${ pkgdir } " install
2013-05-11 03:15:57 +08:00
2013-11-18 02:50:43 +08:00
sed -i -e "s~#!/bin/sh~#!/bin/sh\nexport GI_TYPELIB_PATH=/usr/lib/girepository-1.0/:/usr/lib/girepository-1.0/~g" ${ pkgdir } /usr/bin/system-config-printer
sed -i -e "s~#!/bin/sh~#!/bin/sh\nexport GI_TYPELIB_PATH=/usr/lib/girepository-1.0/:/usr/lib/girepository-1.0/~g" ${ pkgdir } /usr/bin/scp-dbus-service
2012-06-23 17:03:55 +08:00
}