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

Felix Yan felixonmars at archlinux.org
Mon Nov 16 02:42:31 UTC 2020


    Date: Monday, November 16, 2020 @ 02:42:31
  Author: felixonmars
Revision: 755115

archrelease: copy trunk to community-staging-any

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

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

Copied: retext/repos/community-staging-any/PKGBUILD (from rev 755114, retext/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-16 02:42:31 UTC (rev 755115)
@@ -0,0 +1,63 @@
+# 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
+pkgname=retext
+pkgver=7.1.0
+pkgrel=5
+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' 'python-markups>=2.0.0' 'shared-mime-info' 'xdg-utils' 'python-docutils'
+         'desktop-file-utils' 'hicolor-icon-theme' 'python-markdown' 'python-pygments' 'python-chardet')
+makedepends=('imagemagick' 'qt5-tools' 'python-setuptools')
+checkdepends=('xorg-server-xvfb' 'python-chardet' 'python-docutils')
+optdepends=('qt5-webkit: for WebKit preview'
+            'python-pyqtwebengine: for WebEngine preview'
+            'python-pyenchant: for spell checking support')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc}
+        "x-retext-rst.xml")
+sha256sums=('5232c00867617dd6561d7b4709c7a053df0b431aa5b7261a78f28dfced18a9fa'
+            'SKIP'
+            '6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
+validpgpkeys=('F24299FF1BBC9018B906A4CB6026936D2F1C8AE0') # Dmitry Shachnev <mitya57 at debian.org>
+
+build () {
+    cd "$srcdir/${_pkgname}-${pkgver}"
+    python3 setup.py build
+}
+
+check() {
+    cd "$srcdir/${_pkgname}-${pkgver}"
+    xvfb-run python3 setup.py test
+}
+
+package () {
+    cd "$srcdir/${_pkgname}-${pkgver}"
+    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 +set date:create +set date:modify 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-rst.xml "$_SHAREDIR"/mime/packages/
+}
+
+# vim:set ts=2 sw=2 et:

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

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



More information about the arch-commits mailing list