[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Wed Sep 16 07:38:23 UTC 2015
Date: Wednesday, September 16, 2015 @ 09:38:23
Author: fyan
Revision: 140359
addpkg: deepin-menu 2.3.0-1
Added:
deepin-menu/
deepin-menu/repos/
deepin-menu/trunk/
deepin-menu/trunk/PKGBUILD
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Added: deepin-menu/trunk/PKGBUILD
===================================================================
--- deepin-menu/trunk/PKGBUILD (rev 0)
+++ deepin-menu/trunk/PKGBUILD 2015-09-16 07:38:23 UTC (rev 140359)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-menu
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Deepin menu service for building beautiful menus"
+arch=('i686' 'x86_64')
+url="https://gitcafe.com/Deepin/deepin-menu"
+license=('GPL3')
+depends=('python2-pyqt5' 'qt5-x11extras')
+makedepends=('python2-setuptools' 'qt5-declarative' 'git')
+groups=('deepin')
+source=("git+https://github.com/linuxdeepin/deepin-menu.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+ cd deepin-menu
+
+ # fix python version
+ find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+}
+
+build() {
+ cd deepin-menu
+
+ python2 setup.py build
+ qmake-qt5
+ make
+}
+
+package() {
+ cd deepin-menu
+
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -dm 755 "${pkgdir}"/usr/share/dbus-1/services/
+ install -dm 755 "${pkgdir}"/etc/xdg/autostart/
+
+ rm -r "${pkgdir}"/usr/deepin_menu
+
+ install -m 644 *.service "${pkgdir}"/usr/share/dbus-1/services/
+ install -m 644 *.desktop "${pkgdir}"/etc/xdg/autostart/
+}
Property changes on: deepin-menu/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list