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

Andrea Scarpino andrea at archlinux.org
Tue May 29 23:12:25 UTC 2012


    Date: Tuesday, May 29, 2012 @ 19:12:25
  Author: andrea
Revision: 160172

archrelease: copy kde-unstable to kde-unstable-any

Added:
  kdeutils-printer-applet/repos/kde-unstable-any/
  kdeutils-printer-applet/repos/kde-unstable-any/PKGBUILD
    (from rev 160171, kdeutils-printer-applet/kde-unstable/PKGBUILD)

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

Copied: kdeutils-printer-applet/repos/kde-unstable-any/PKGBUILD (from rev 160171, kdeutils-printer-applet/kde-unstable/PKGBUILD)
===================================================================
--- kde-unstable-any/PKGBUILD	                        (rev 0)
+++ kde-unstable-any/PKGBUILD	2012-05-29 23:12:25 UTC (rev 160172)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdeutils-printer-applet
+pkgver=4.8.80
+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/unstable/${pkgver}/src/printer-applet-${pkgver}.tar.xz")
+sha1sums=('6a8691b6f810a0ad2b4d69e581f97151b8b9e0df')
+
+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