Date: Tuesday, December 8, 2015 @ 13:21:05
  Author: fyan
Revision: 150284

archrelease: copy trunk to community-staging-any

Added:
  deepin-screenshot/repos/community-staging-any/
  deepin-screenshot/repos/community-staging-any/PKGBUILD
    (from rev 150283, deepin-screenshot/trunk/PKGBUILD)
  deepin-screenshot/repos/community-staging-any/deepin-screenshot.install
    (from rev 150283, deepin-screenshot/trunk/deepin-screenshot.install)

---------------------------+
 PKGBUILD                  |   43 +++++++++++++++++++++++++++++++++++++++++++
 deepin-screenshot.install |   11 +++++++++++
 2 files changed, 54 insertions(+)

Copied: deepin-screenshot/repos/community-staging-any/PKGBUILD (from rev 
150283, deepin-screenshot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2015-12-08 12:21:05 UTC (rev 150284)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-screenshot
+pkgver=3.1.3.20151208
+_commit=c68921c5d3d995a3184f75d4b4dcb080c53e9d74
+pkgrel=1
+pkgdesc="Easy-to-use screenshot tool for linuxdeepin desktop environment"
+arch=('any')
+url="https://gitcafe.com/Deepin/deepin-screenshot";
+license=('GPL3')
+depends=('deepin-menu' 'deepin-qml-widgets' 'pygtk' 'qt5-quickcontrols'
+         'qt5-svg' 'python2-pyqt5' 'python2-wnck' 'python2-xpybutil')
+makedepends=('deepin-gettext-tools' 'git')
+optdepends=('deepin-social-sharing: for "Share" support')
+groups=('deepin-extra')
+install="${pkgname}.install"
+source=("git+https://github.com/linuxdeepin/deepin-screenshot.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+prepare() {
+  cd deepin-screenshot
+
+  # fix python version
+  find src -type f | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+}
+
+build() {
+  cd deepin-screenshot
+
+  make
+}
+
+package() {
+  cd deepin-screenshot
+  make DESTDIR="${pkgdir}" install
+}
+
+ # Local Variables:
+ # sh-basic-offset: 2
+ # End:

Copied: deepin-screenshot/repos/community-staging-any/deepin-screenshot.install 
(from rev 150283, deepin-screenshot/trunk/deepin-screenshot.install)
===================================================================
--- community-staging-any/deepin-screenshot.install                             
(rev 0)
+++ community-staging-any/deepin-screenshot.install     2015-12-08 12:21:05 UTC 
(rev 150284)
@@ -0,0 +1,11 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install "$1"
+}
+
+post_remove() {
+  post_install "$1"
+}

Reply via email to