[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Mon Sep 14 16:08:50 UTC 2015


    Date: Monday, September 14, 2015 @ 18:08:49
  Author: fyan
Revision: 140093

addpkg: python-deepin-gsettings 0.1.20131016-1

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

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

Added: python-deepin-gsettings/trunk/PKGBUILD
===================================================================
--- python-deepin-gsettings/trunk/PKGBUILD	                        (rev 0)
+++ python-deepin-gsettings/trunk/PKGBUILD	2015-09-14 16:08:49 UTC (rev 140093)
@@ -0,0 +1,49 @@
+# $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-gsettings
+pkgname=python2-deepin-gsettings
+pkgver=0.1.20131016
+_commit=a64de3ac195fe8d5878a07f2e862a058d49ce16d
+pkgrel=1
+pkgdesc='deepin gsettings python bindings'
+arch=('i686' 'x86_64')
+url="https://gitcafe.com/Deepin/deepin-gsettings"
+license=('GPL3')
+depends=('python2' 'glib2')
+makedepends=('python2-setuptools' 'git')
+checkdepends=('gnome-control-center')
+provides=('deepin-gsettings')
+replaces=('deepin-gsettings')
+conflicts=('deepin-gsettings')
+source=("git+https://github.com/linuxdeepin/deepin-gsettings.git#commit=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+  cd deepin-gsettings
+
+  # fix python version
+  # find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+
+  # fix tests by using another key to test, since the old one was deprecated
+  sed -e 's|motion-threshold|drag-threshold|' \
+      -e 's|idle-dim-battery|idle-dim|g' \
+      -i example.py
+}
+
+build(){
+  cd deepin-gsettings
+  python2 setup.py build
+}
+
+check() {
+  cd deepin-gsettings
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 example.py
+}
+
+package() {
+  cd deepin-gsettings
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}


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



More information about the arch-commits mailing list