35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'ReText'
|
|
pkgname=ReText
|
|
version=7.0.3
|
|
revision=1
|
|
noarch=yes
|
|
build_style=python3-module
|
|
pycompile_module="ReText"
|
|
wrksrc="${pkgname,,}-${version}"
|
|
hostmakedepends="ImageMagick python3 qt5-host-tools qt5-tools python3-setuptools"
|
|
makedepends="python3-Markdown python3-Markups python3-PyQt5-webkit qt5-tools"
|
|
depends="desktop-file-utils python3-Markdown python3-Markups
|
|
python3-PyQt5-webkit"
|
|
short_desc="Simple editor for Markdown and reStructuredText"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/retext-project/retext"
|
|
distfiles="https://github.com/retext-project/retext/archive/${version}.tar.gz"
|
|
checksum=ba32bd24776ba4f925d6a58ebd554880dd566d260c7c99e65cd71db3d7cadc89
|
|
|
|
post_install() {
|
|
lrelease locale/*.ts
|
|
local icondir=usr/share/icons/hicolor
|
|
|
|
for size in 16 22 24 32 48 128; do
|
|
vmkdir $icondir/${size}x${size}/apps
|
|
convert -resize $size icons/retext.png $DESTDIR/$icondir/${size}x${size}/apps/retext.png;
|
|
done
|
|
vmkdir $icondir/scalable/apps
|
|
vinstall icons/retext.svg 644 $icondir/scalable/apps
|
|
|
|
vinstall $FILESDIR/$pkgname.desktop 644 usr/share/applications
|
|
vmkdir usr/share/mime/packages
|
|
vcopy $FILESDIR/x-retext-*.xml usr/share/mime/packages
|
|
}
|