system-config-printer updated to 1.3.3

This commit is contained in:
abveritas 2011-06-03 15:20:47 +00:00
parent 8a2e3c8817
commit f8021d4db3

View File

@ -9,31 +9,33 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase=system-config-printer pkgbase=system-config-printer
pkgname=('system-config-printer') pkgname=('system-config-printer')
pkgver=1.2.6 pkgver=1.3.3
pkgrel=1 pkgrel=1
pkgdesc="A CUPS printer configuration tool and status applet" pkgdesc="A CUPS printer configuration tool and status applet"
url="http://cyberelk.net/tim/software/system-config-printer/" url="http://cyberelk.net/tim/software/system-config-printer/"
arch=('any') arch=('any')
license=('GPL') license=('GPL')
makedepends=('intltool' 'python2' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libcups' 'libxml2') makedepends=('intltool' 'python2' 'xmlto' 'docbook-xsl' 'desktop-file-utils' 'libcups' 'libxml2')
source=("http://cyberelk.net/tim/data/${pkgbase}/1.2/${pkgbase}-${pkgver}.tar.bz2") source=("http://cyberelk.net/tim/data/${pkgbase}/1.3/${pkgbase}-${pkgver}.tar.xz")
md5sums=('ba4ae339dac1025cb014918286fd029b') md5sums=('658516848c6ced2b1acc6d3525d27204')
build() { build() {
cd ${srcdir}/${pkgbase}-${pkgver} cd ${srcdir}/${pkgbase}-${pkgver}
sed -i "s|#!/usr/bin/python|#!/usr/bin/python2|" udev/udev-add-printer
./configure --prefix=/usr \ ./configure --prefix=/usr \
--sbindir=/usr/bin \ --sbindir=/usr/bin \
--sysconfdir=/etc \ --sysconfdir=/etc \
--disable-nls --with-udev-rules
make || return 1
make
} }
package() { package() {
pkgdesc='Pygtk CUPS Configuration' pkgdesc='Pygtk CUPS Configuration'
depends=('pycups' 'dbus-python' 'pysmbc') depends=('pycups' 'dbus-python' 'pysmbc')
optdepends=('system-config-printer-gnome: for the GTK frontend' optdepends=('kdeadmin-system-config-printer-kde: for the administration tool in KDE System Settings')
'kdeadmin-system-config-printer-kde: for the administration tool in KDE System Settings')
replaces=('system-config-printer') replaces=('system-config-printer')
provides=("system-config-printer=$pkgver" 'system-config-printer-common') provides=("system-config-printer=$pkgver" 'system-config-printer-common')
conflicts=('system-config-printer') conflicts=('system-config-printer')
@ -51,17 +53,26 @@ package() {
smburi.py \ smburi.py \
statereason.py \ statereason.py \
XmlHelper.py \ XmlHelper.py \
${pkgdir}/usr/share/${pkgbase}/ || return 1 ${pkgdir}/usr/share/${pkgbase}/
install -m755 pysmb.py \ install -m755 pysmb.py \
${pkgdir}/usr/share/${pkgbase}/ || return 1 ${pkgdir}/usr/share/${pkgbase}/
install -d ${pkgdir}/etc/dbus-1/system.d/ install -d ${pkgdir}/etc/dbus-1/system.d/
install -m644 newprinternotification.conf \ install -m644 dbus/com.redhat.NewPrinterNotification.conf \
${pkgdir}/etc/dbus-1/system.d/ || return 1 dbus/com.redhat.PrinterDriversInstaller.conf \
${pkgdir}/etc/dbus-1/system.d/
install -d ${pkgdir}/etc/cupshelpers/
install -m644 xml/preferreddrivers.xml ${pkgdir}/etc/cupshelpers/
install -d ${pkgdir}/lib/udev/rules.d
install -m755 udev/{udev-add-printer,udev-configure-printer} \
${pkgdir}/lib/udev/
install -m644 udev/70-printers.rules \
${pkgdir}/lib/udev/rules.d
for file in build/lib/cupshelpers/*.py; do for file in build/lib/cupshelpers/*.py; do
install -Dm644 $file \ install -Dm644 $file \
${pkgdir}/usr/lib/python2.7/site-packages/cupshelpers/$(basename $file) || return 1 ${pkgdir}/usr/lib/python2.7/site-packages/cupshelpers/$(basename $file)
done done
} }