74 lines
2.9 KiB
Bash
74 lines
2.9 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=retext
|
|
#pkgname=retext-qt5
|
|
pkgver=7.2.3
|
|
pkgrel=01
|
|
pkgdesc="A simple editor for Markdown and ReStructuredText markup languages qt5 based"
|
|
url="https://github.com/retext-project/retext"
|
|
# 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=('python-pyqt5-webengine: for WebEngine preview'
|
|
'python-pyenchant: for spell checking support')
|
|
source=("https://github.com/retext-project/retext/archive/refs/tags/$pkgver.tar.gz"
|
|
#https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
|
|
"x-retext-rst.xml")
|
|
## 8.0.1 is out 5/29/23 https://github.com/retext-project/retext/archive/refs/tags/8.0.1.tar.gz
|
|
## last version based on qt5 is 7.2.3
|
|
## https://github.com/retext-project/retext/archive/refs/tags/7.2.3.tar.gz
|
|
## source tarballs are no longer signed
|
|
|
|
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
|
|
size=16
|
|
install -d -m 755 "$_ICONSDIR"/${size}x${size}/apps
|
|
# convert -resize $size +set date:create +set date:modify
|
|
install -m 644 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/
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL3')
|
|
|
|
validpgpkeys=('F24299FF1BBC9018B906A4CB6026936D2F1C8AE0') # Dmitry Shachnev <mitya57@debian.org>
|
|
|
|
sha256sums=(45c47f58c4f9939429da09340833c0ffbe507f2c806e16b30aa1cf90eb954274 # 7.2.3.tar.gz
|
|
6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a) # x-retext-rst.xml
|
|
|
|
## 9e970386fd238952ce7d34459748ea1c6ce8f3221877ac5fe9a57292a7b6592f retext-7.2.3-01-x86_64.pkg.tar.lz
|