2012-06-23 17:03:55 +08:00
|
|
|
pkgname="system-config-printer"
|
2015-03-02 06:11:43 +08:00
|
|
|
pkgver=1.5.5
|
2015-03-03 21:23:48 +08:00
|
|
|
pkgrel=2
|
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/"
|
2015-03-02 06:11:43 +08:00
|
|
|
arch=('x86_64')
|
2012-06-23 17:03:55 +08:00
|
|
|
license=('GPL')
|
2015-03-02 06:11:43 +08:00
|
|
|
depends=('pycups' 'python3-dbus' 'pysmbc' 'libusb-compat' 'python3-pycurl' 'python3-requests')
|
|
|
|
makedepends=('intltool' 'python3' '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')
|
2015-03-03 21:23:48 +08:00
|
|
|
source=(http://cyberelk.net/tim/data/$pkgname/1.5/$pkgname-$pkgver.tar.xz)
|
|
|
|
md5sums=('1aaee6a90449ee0c6b90da2eb5df03a9')
|
2013-05-05 16:21:06 +08:00
|
|
|
|
2012-06-23 17:03:55 +08:00
|
|
|
build() {
|
2015-03-02 06:11:43 +08:00
|
|
|
cd $pkgname-$pkgver
|
2012-06-23 17:03:55 +08:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--sysconfdir=/etc \
|
2015-03-02 06:11:43 +08:00
|
|
|
--with-udevdir=/usr/lib/udev --with-udev-rules
|
2012-06-23 17:03:55 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-03-02 06:11:43 +08:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
|
|
|
|
# Compile *.pyc
|
|
|
|
find "${pkgdir}" -name '*.py' -exec python3 -mpy_compile {} +
|
|
|
|
# Compile *.pyo
|
|
|
|
find "${pkgdir}" -name '*.py' -exec python3 -O -mpy_compile {} +
|
|
|
|
|
|
|
|
# new cups 2.0.0 service naming
|
|
|
|
sed -i "s|cups.socket|org.cups.cupsd.socket|g" ${pkgdir}/usr/lib/systemd/system/configure-printer@.service
|
2012-06-23 17:03:55 +08:00
|
|
|
}
|