Date: Friday, October 2, 2015 @ 10:46:33 Author: fyan Revision: 142741
addpkg: deepin-terminal 1.1.0.20150814-1 Added: deepin-terminal/ deepin-terminal/repos/ deepin-terminal/trunk/ deepin-terminal/trunk/PKGBUILD deepin-terminal/trunk/deepin-terminal.install deepin-terminal/trunk/use-deepinvte.patch ---------------------+ PKGBUILD | 42 +++++++++++++++++++++++++++++++++++ use-deepinvte.patch | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) Added: deepin-terminal/trunk/PKGBUILD =================================================================== --- deepin-terminal/trunk/PKGBUILD (rev 0) +++ deepin-terminal/trunk/PKGBUILD 2015-10-02 08:46:33 UTC (rev 142741) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> +# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com> + +pkgname=deepin-terminal +pkgver=1.1.0.20150814 +_commit=86993c2e50a83d309e9b1016362077f85d934cab +pkgrel=1 +pkgdesc='Awesome terminal for Linux Deepin' +arch=('any') +url="https://gitcafe.com/Deepin/deepin-terminal" +license=('GPL3') +depends=('python2-deepin-vte' 'desktop-file-utils' 'expect' 'hicolor-icon-theme' + 'python2-dbus' 'python2-deepin-ui' 'xdotool') +makedepends=('deepin-gettext-tools' 'git') +groups=('deepin-extra') +install="${pkgname}.install" +source=("git+https://github.com/linuxdeepin/deepin-terminal.git#commit=$_commit" + use-deepinvte.patch) +sha256sums=('SKIP' + 'b1d0d3a1ac3ea78d235cd721d757ad00715267775e2c219a5ba0474119c2bb3c') + +prepare(){ + cd deepin-terminal + + # use deepinvte + patch -p1 --no-backup-if-mismatch -i ../use-deepinvte.patch + + # fix python version + find "${srcdir}" -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2=' +} + +build() { + cd deepin-terminal + deepin-generate-mo tools/locale_config.ini +} + +package() { + cd deepin-terminal + make DESTDIR="${pkgdir}" PREFIX="/usr" install +} Property changes on: deepin-terminal/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: deepin-terminal/trunk/deepin-terminal.install =================================================================== Added: deepin-terminal/trunk/use-deepinvte.patch =================================================================== --- deepin-terminal/trunk/use-deepinvte.patch (rev 0) +++ deepin-terminal/trunk/use-deepinvte.patch 2015-10-02 08:46:33 UTC (rev 142741) @@ -0,0 +1,60 @@ +diff --git a/src/main.py b/src/main.py +index bfb7005..3ef77ee 100755 +--- a/src/main.py ++++ b/src/main.py +@@ -57,7 +57,7 @@ import subprocess + import sys + import traceback + import urllib +-import vte ++import deepinvte + import shlex + + PROJECT_NAME = "deepin-terminal" +@@ -1324,9 +1324,9 @@ class Terminal(object): + + gtk.main() + +-class TerminalWrapper(vte.Terminal): ++class TerminalWrapper(deepinvte.Terminal): + """ +- Wrapper class for vte.Terminal. Propagate keys. Make some customize as well. ++ Wrapper class for deepinvte.Terminal. Propagate keys. Make some customize as well. + """ + + def __init__(self, +@@ -1340,7 +1340,7 @@ class TerminalWrapper(vte.Terminal): + Initial values. + :param parent_widget: which grid this widget belongs to. + """ +- vte.Terminal.__init__(self) ++ deepinvte.Terminal.__init__(self) + self.parent_widget = parent_widget + self.press_q_quit = press_q_quit + self.set_word_chars("-A-Za-z0-9,./?%&#:_") +@@ -1582,19 +1582,19 @@ class TerminalWrapper(vte.Terminal): + + def change_cursor_shape(self, cursor_shape): + if cursor_shape == "block": +- self.set_cursor_shape(vte.CURSOR_SHAPE_BLOCK) ++ self.set_cursor_shape(deepinvte.CURSOR_SHAPE_BLOCK) + elif cursor_shape == "ibeam": +- self.set_cursor_shape(vte.CURSOR_SHAPE_IBEAM) ++ self.set_cursor_shape(deepinvte.CURSOR_SHAPE_IBEAM) + elif cursor_shape == "underline": +- self.set_cursor_shape(vte.CURSOR_SHAPE_UNDERLINE) ++ self.set_cursor_shape(deepinvte.CURSOR_SHAPE_UNDERLINE) + + def change_cursor_blink_mode(self, cursor_blink_mode): + if cursor_blink_mode == "system": +- self.set_cursor_blink_mode(vte.CURSOR_BLINK_SYSTEM) ++ self.set_cursor_blink_mode(deepinvte.CURSOR_BLINK_SYSTEM) + elif cursor_blink_mode == "on": +- self.set_cursor_blink_mode(vte.CURSOR_BLINK_ON) ++ self.set_cursor_blink_mode(deepinvte.CURSOR_BLINK_ON) + elif cursor_blink_mode == "off": +- self.set_cursor_blink_mode(vte.CURSOR_BLINK_OFF) ++ self.set_cursor_blink_mode(deepinvte.CURSOR_BLINK_OFF) + + def change_encoding(self, encoding): + self.set_encoding(encoding)
