[arch-commits] Commit in kdeutils-printer-applet/repos (2 files)

Andrea Scarpino andrea at archlinux.org
Tue Sep 4 16:34:37 UTC 2012


    Date: Tuesday, September 4, 2012 @ 12:34:37
  Author: andrea
Revision: 166126

archrelease: copy trunk to testing-any

Added:
  kdeutils-printer-applet/repos/testing-any/
  kdeutils-printer-applet/repos/testing-any/PKGBUILD
    (from rev 166125, kdeutils-printer-applet/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: kdeutils-printer-applet/repos/testing-any/PKGBUILD (from rev 166125, kdeutils-printer-applet/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2012-09-04 16:34:37 UTC (rev 166126)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdeutils-printer-applet
+pkgver=4.9.1
+pkgrel=1
+pkgdesc='System tray icon for managing print jobs'
+url='http://kde.org/applications/system/printerapplet/'
+arch=('any')
+license=('GPL' 'LGPL' 'FDL')
+depends=('kdebase-runtime' 'kdebindings-python2' 'system-config-printer-common')
+makedepends=('cmake' 'automoc4')
+groups=('kde' 'kdeutils')
+source=("http://download.kde.org/stable/${pkgver}/src/printer-applet-${pkgver}.tar.xz")
+sha1sums=('7a2a4f725d3c13bc15aa92e26c05aa24404e3c3e')
+
+build() {
+  cd "${srcdir}"
+  mkdir build
+  cd build
+  cmake ../printer-applet-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPYTHON_EXECUTABLE=/usr/bin/python2
+  make
+}
+
+package() {
+  cd $srcdir/build
+  make DESTDIR=$pkgdir install
+  cd $srcdir/build/doc
+  make DESTDIR=$pkgdir install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "${pkgdir}"/usr/share/apps/printer-applet/{authconn,debug,monitor,printer-applet,statereason}.py
+}




More information about the arch-commits mailing list