[arch-commits] Commit in guake/repos (2 files)

Balló György bgyorgy at archlinux.org
Mon Jan 15 00:48:06 UTC 2018


    Date: Monday, January 15, 2018 @ 00:48:05
  Author: bgyorgy
Revision: 282286

archrelease: copy trunk to community-testing-any

Added:
  guake/repos/community-testing-any/
  guake/repos/community-testing-any/PKGBUILD
    (from rev 282285, guake/trunk/PKGBUILD)

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

Copied: guake/repos/community-testing-any/PKGBUILD (from rev 282285, guake/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-01-15 00:48:05 UTC (rev 282286)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Wilson Pinto Júnior (N3RD3X) <n3rd3x at linuxmail.org>
+# Contributor: Attila Bukor <r1pp3rj4ck at w4it.eu>
+
+pkgname=guake
+pkgver=3.0.0
+pkgrel=1
+pkgdesc='Drop-down terminal for GNOME'
+arch=('any')
+url="http://guake-project.org/"
+license=('GPL')
+depends=('libkeybinder3' 'libnotify' 'libutempter' 'python-cairo' 'python-dbus' 'python-gobject' 'vte3')
+makedepends=('python-pbr')
+source=($pkgname-$pkgver.tar.gz::https://github.com/Guake/$pkgname/archive/$pkgver.tar.gz)
+sha256sums=('bf35c34d90e1778b0cae25a2c9620778a0d2a394bc1ff8c15867bf432800932c')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's/echo "generating $$f;"/echo "generating $$f";/
+          /glib-compile-schemas/d' Makefile
+
+  # Fix path
+  sed -i "s|IMAGE_DIR = os.path.join(SRC_DIR, 'data/pixmaps')|IMAGE_DIR = '/usr/share/pixmaps/guake'|
+          s|GLADE_DIR = os.path.join(SRC_DIR, 'data')|GLADE_DIR = '/usr/share/guake'|
+          s|SCHEMA_DIR = os.path.join(SRC_DIR, 'data')|SCHEMA_DIR = '/usr/share/glib-2.0/schemas'|" guake/globals.py
+
+  # Remove dependency on python-pbr
+  sed -i "/import pbr.version/d
+          s/__version__ = pbr.version.VersionInfo('guake').version_string()/__version__ = '$pkgver'/" guake/__init__.py
+}
+
+build() {
+  cd $pkgname-$pkgver
+  PBR_VERSION=$pkgver python3 setup.py build
+  make generate-desktop generate-mo
+}
+
+package() {
+  cd $pkgname-$pkgver
+  PBR_VERSION=$pkgver python3 setup.py install --root "$pkgdir" --optimize=1
+  install -Dm644 -t "$pkgdir/usr/share/guake/" guake/data/*.glade 
+  install -Dm644 -t "$pkgdir/usr/share/pixmaps/guake/" guake/data/pixmaps/*.png 
+  make PREFIX="$pkgdir/usr" install-schemas install-locale
+}



More information about the arch-commits mailing list