void-packages/srcpkgs/ReText/template

33 lines
1.1 KiB
Bash

# Template file for 'ReText'
pkgname=ReText
version=7.0.1
revision=2
noarch=yes
build_style=python3-module
pycompile_module="ReText"
makedepends="python3 qt5-tools ImageMagick"
depends="python3-PyQt5-webkit python3-Markups python3-Markdown
desktop-file-utils shared-mime-info"
short_desc="Simple editor for Markdown and reStructuredText"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-3"
homepage="https://github.com/retext-project/retext"
distfiles="https://github.com/retext-project/retext/archive/${version}.tar.gz"
checksum=c32ccdbcf31094258c792bc0589ff3ff212dea85466d776b7f60fa7b39da4b6c
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
}