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

Felix Yan felixonmars at archlinux.org
Tue Dec 27 06:42:28 UTC 2016


    Date: Tuesday, December 27, 2016 @ 06:42:27
  Author: felixonmars
Revision: 202964

archrelease: copy trunk to community-staging-any

Added:
  retext/repos/community-staging-any/
  retext/repos/community-staging-any/PKGBUILD
    (from rev 202963, retext/trunk/PKGBUILD)
  retext/repos/community-staging-any/x-retext-markdown.xml
    (from rev 202963, retext/trunk/x-retext-markdown.xml)
  retext/repos/community-staging-any/x-retext-rst.xml
    (from rev 202963, retext/trunk/x-retext-rst.xml)

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

Copied: retext/repos/community-staging-any/PKGBUILD (from rev 202963, retext/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-27 06:42:27 UTC (rev 202964)
@@ -0,0 +1,61 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# AUR Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
+# Contributor: Bartosz Chmura <chmurli at gmail.com>
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+# Contributor: alfplayer
+# Contributor: menta
+
+pkgname=retext
+pkgver=6.0.2
+pkgrel=2
+pkgdesc="A simple editor for Markdown and ReStructuredText markup languages"
+arch=('any')
+url="https://github.com/retext-project/retext"
+license=('GPL3')
+# for desktop integration: 'shared-mime-info' 'xdg-utils' 'desktop-file-utils'
+# for toolbar icons (see http://sourceforge.net/p/retext/tickets/44/): 'gconf'
+depends=('python-pyqt5' 'qt5-webkit' 'python-markups>=2.0.0' 'shared-mime-info' 'xdg-utils' 'desktop-file-utils' 'gconf' 'hicolor-icon-theme' 'python-markdown')
+makedepends=('imagemagick' 'qt5-tools')
+optdepends=('python-docutils: for reStructuredText language support'
+            'python-pyenchant: for spell checking support')
+source=("https://github.com/retext-project/$pkgname/archive/$pkgver.tar.gz"
+        "x-retext-markdown.xml"
+        "x-retext-rst.xml")
+sha256sums=('50c02d69ff6dca8863003e913a2acae7f3041e44ea96852e2dac303d435d1ca2'
+            'b51611479d3224eec2b58264ed91ace3eccb502b7b806dae3e7a3ab4aab8c4b8'
+            '6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
+
+prepare () {
+    cd "$srcdir/retext-${pkgver}"
+    #cd "$srcdir/retext"
+}
+
+build () {
+    cd "$srcdir/retext-${pkgver}"
+    #cd "$srcdir/retext"
+    python3 setup.py build
+}
+
+package () {
+    cd "$srcdir/retext-${pkgver}"
+    #cd "$srcdir/retext"
+    python3 setup.py install --root="$pkgdir" -O1
+
+    # create /usr/share/* dirs
+    _SHAREDIR="$pkgdir/usr/share"
+    install -d -m 755 $_SHAREDIR/{applications,mime/packages}
+
+    # install icons
+    _ICONSDIR="$_SHAREDIR/icons/hicolor"
+    for size in 16 22 24 32 48 128; do
+      install -d -m 755 $_ICONSDIR/${size}x${size}/apps
+      convert -resize $size icons/$pkgname.png $_ICONSDIR/${size}x${size}/apps/$pkgname.png
+    done
+    install -d -m 755 $_ICONSDIR/scalable/apps
+    install -m 644 icons/$pkgname.svg $_ICONSDIR/scalable/apps/$pkgname.svg
+
+    # install mime files
+    install -m 644 $srcdir/x-retext-{markdown,rst}.xml $_SHAREDIR/mime/packages/
+}
+
+# vim:set ts=2 sw=2 et:

Copied: retext/repos/community-staging-any/x-retext-markdown.xml (from rev 202963, retext/trunk/x-retext-markdown.xml)
===================================================================
(Binary files differ)

Copied: retext/repos/community-staging-any/x-retext-rst.xml (from rev 202963, retext/trunk/x-retext-rst.xml)
===================================================================
(Binary files differ)



More information about the arch-commits mailing list