[arch-commits] Commit in deepin-menu/repos (4 files)

Felix Yan felixonmars at archlinux.org
Fri Aug 18 06:47:43 UTC 2017


    Date: Friday, August 18, 2017 @ 06:47:42
  Author: felixonmars
Revision: 252356

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  deepin-menu/repos/community-staging-i686/
  deepin-menu/repos/community-staging-i686/PKGBUILD
    (from rev 252355, deepin-menu/trunk/PKGBUILD)
  deepin-menu/repos/community-staging-x86_64/
  deepin-menu/repos/community-staging-x86_64/PKGBUILD
    (from rev 252355, deepin-menu/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   48 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

Copied: deepin-menu/repos/community-staging-i686/PKGBUILD (from rev 252355, deepin-menu/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-08-18 06:47:42 UTC (rev 252356)
@@ -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=3.1.6
+pkgrel=1
+pkgdesc="Deepin menu service for building beautiful menus"
+arch=('i686' 'x86_64')
+url="https://github.com/linuxdeepin/deepin-menu"
+license=('GPL3')
+depends=('python2-pyqt5' 'dtkwidget' 'deepin-qt-dbus-factory')
+makedepends=('python2-setuptools')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-menu/archive/$pkgver.tar.gz")
+sha512sums=('1d7d8487561c135625848aa0fe74add56b89411625b936e2c0747cfdaf247c83898a4dc58cd33618ee5910a8de8ef356b9f11dedfc740dfe08f058890537be6b')
+
+prepare() {
+  cd deepin-menu-$pkgver
+
+  # fix python version
+  find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+}
+
+build() {
+  cd deepin-menu-$pkgver
+
+  python2 setup.py build
+  qmake-qt5 DEFINES+=QT_NO_DEBUG_OUTPUT
+  make
+}
+
+package() {
+  cd deepin-menu-$pkgver
+
+  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 data/*.service "$pkgdir"/usr/share/dbus-1/services/
+  install -m 644 *.desktop "$pkgdir"/etc/xdg/autostart/
+}

Copied: deepin-menu/repos/community-staging-x86_64/PKGBUILD (from rev 252355, deepin-menu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-08-18 06:47:42 UTC (rev 252356)
@@ -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=3.1.6
+pkgrel=1
+pkgdesc="Deepin menu service for building beautiful menus"
+arch=('i686' 'x86_64')
+url="https://github.com/linuxdeepin/deepin-menu"
+license=('GPL3')
+depends=('python2-pyqt5' 'dtkwidget' 'deepin-qt-dbus-factory')
+makedepends=('python2-setuptools')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-menu/archive/$pkgver.tar.gz")
+sha512sums=('1d7d8487561c135625848aa0fe74add56b89411625b936e2c0747cfdaf247c83898a4dc58cd33618ee5910a8de8ef356b9f11dedfc740dfe08f058890537be6b')
+
+prepare() {
+  cd deepin-menu-$pkgver
+
+  # fix python version
+  find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+}
+
+build() {
+  cd deepin-menu-$pkgver
+
+  python2 setup.py build
+  qmake-qt5 DEFINES+=QT_NO_DEBUG_OUTPUT
+  make
+}
+
+package() {
+  cd deepin-menu-$pkgver
+
+  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 data/*.service "$pkgdir"/usr/share/dbus-1/services/
+  install -m 644 *.desktop "$pkgdir"/etc/xdg/autostart/
+}



More information about the arch-commits mailing list