[arch-commits] Commit in kdeutils-printer-applet/repos (extra-any extra-any/PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Fri Mar 16 06:20:14 EDT 2012


    Date: Friday, March 16, 2012 @ 06:20:14
  Author: andrea
Revision: 153585

archrelease: copy trunk to extra-any

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

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

Copied: kdeutils-printer-applet/repos/extra-any/PKGBUILD (from rev 153584, kdeutils-printer-applet/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2012-03-16 10:20:14 UTC (rev 153585)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdeutils-printer-applet
+pkgver=4.8.1
+pkgrel=2
+pkgdesc='System tray icon for managing print jobs'
+url='http://kde.org/applications/system/printerapplet/'
+arch=('any')
+url='http://www.kde.org'
+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=('c3002fea0382386256c3acaebd907a41db0ccc4e')
+
+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