[arch-commits] Commit in retext/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Jul 20 02:51:15 UTC 2018
Date: Friday, July 20, 2018 @ 02:51:15
Author: eschwartz
Revision: 362474
upgpkg: retext 7.0.3-3
python 3.7 rebuild
add testsuite
Modified:
retext/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-20 02:42:37 UTC (rev 362473)
+++ PKGBUILD 2018-07-20 02:51:15 UTC (rev 362474)
@@ -8,7 +8,7 @@
_pkgname=ReText
pkgname=retext
pkgver=7.0.3
-pkgrel=2
+pkgrel=3
pkgdesc="A simple editor for Markdown and ReStructuredText markup languages"
arch=('any')
url="https://github.com/retext-project/retext"
@@ -18,6 +18,7 @@
depends=('python-pyqt5' 'python-markups>=2.0.0' 'shared-mime-info' 'xdg-utils'
'desktop-file-utils' 'hicolor-icon-theme' 'python-markdown')
makedepends=('imagemagick' 'qt5-tools' 'python-setuptools')
+checkdepends=('xorg-server-xvfb' 'python-chardet' 'python-docutils' 'python-pygments')
optdepends=('python-docutils: for reStructuredText language support'
'qt5-webkit: for WebKit preview'
'python-pyenchant: for spell checking support')
@@ -35,6 +36,11 @@
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
@@ -41,19 +47,19 @@
# create /usr/share/* dirs
_SHAREDIR="$pkgdir/usr/share"
- install -d -m 755 $_SHAREDIR/{applications,mime/packages}
+ 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
+ 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 -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/
+ install -m 644 "$srcdir"/x-retext-{markdown,rst}.xml "$_SHAREDIR"/mime/packages/
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list