[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Sep 15 07:50:16 UTC 2015


    Date: Tuesday, September 15, 2015 @ 09:50:16
  Author: fyan
Revision: 140305

addpkg: python-deepin-ui 1.0.4-1

Added:
  python-deepin-ui/
  python-deepin-ui/repos/
  python-deepin-ui/trunk/
  python-deepin-ui/trunk/PKGBUILD

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

Added: python-deepin-ui/trunk/PKGBUILD
===================================================================
--- python-deepin-ui/trunk/PKGBUILD	                        (rev 0)
+++ python-deepin-ui/trunk/PKGBUILD	2015-09-15 07:50:16 UTC (rev 140305)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgbase=python-deepin-ui
+pkgname=python2-deepin-ui
+pkgver=1.0.4
+pkgrel=1
+pkgdesc='UI toolkit for Linux Deepin'
+arch=('any')
+url="https://gitcafe.com/Deepin/deepin-ui"
+license=('GPL3')
+groups=('deepin')
+depends=('python2-deepin-utils' 'python2-deepin-gsettings' 'pygtk'
+         'python2-scipy' 'glib2' 'python2-cairo' 'python2-pillow'
+         'python2-xlib' 'pywebkitgtk' 'libsoup')
+makedepends=('deepin-gettext-tools' 'python2-setuptools' 'webkitgtk' 'git')
+provides=('deepin-ui')
+replaces=('deepin-ui')
+conflicts=('deepin-ui')
+source=("git+https://github.com/linuxdeepin/deepin-ui.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+  cd deepin-ui
+
+  # fix python version
+  find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+}
+
+build(){
+  cd deepin-ui
+  python2 setup.py build
+
+  deepin-generate-mo dtk/tools/locale_config.ini
+}
+
+package_python2-deepin-ui() {
+  cd deepin-ui
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -dm 755 "${pkgdir}"/usr/share/locale
+  cp -r dtk/locale/mo/* "${pkgdir}"/usr/share/locale/
+}


Property changes on: python-deepin-ui/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list