New package: ReText-4.1.2
This commit is contained in:
parent
cdb3388313
commit
c722ad81e3
4 changed files with 62 additions and 0 deletions
9
srcpkgs/ReText/files/ReText.desktop
Normal file
9
srcpkgs/ReText/files/ReText.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=ReText
|
||||
Comment=editor for Markdown and ReStructuredText markup languages
|
||||
Exec=retext %F
|
||||
Icon=retext
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Office;
|
||||
MimeType=text/x-retext-markdown;text/x-retext-rst;
|
14
srcpkgs/ReText/files/x-retext-markdown.xml
Normal file
14
srcpkgs/ReText/files/x-retext-markdown.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="text/x-retext-markdown">
|
||||
<sub-class-of type="text/plain"/>
|
||||
<comment>Markdown document</comment>
|
||||
<glob pattern="*.md"/>
|
||||
<glob pattern="*.mkd"/>
|
||||
<glob pattern="*.mkdn"/>
|
||||
<glob pattern="*.mdml"/>
|
||||
<glob pattern="*.mdown"/>
|
||||
<glob pattern="*.markdown"/>
|
||||
<glob pattern="*.re"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
9
srcpkgs/ReText/files/x-retext-rst.xml
Normal file
9
srcpkgs/ReText/files/x-retext-rst.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="text/x-retext-rst">
|
||||
<sub-class-of type="text/plain"/>
|
||||
<comment>reStructuredText document</comment>
|
||||
<glob pattern="*.rst"/>
|
||||
<glob pattern="*.rest"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
30
srcpkgs/ReText/template
Normal file
30
srcpkgs/ReText/template
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Template file for 'ReText'
|
||||
pkgname=ReText
|
||||
version=4.1.2
|
||||
revision=1
|
||||
build_style="python-module"
|
||||
python_versions="3"
|
||||
hostmakedepends="python3 ImageMagick"
|
||||
depends="python3-Markups python3-pyside python3-Markdown"
|
||||
short_desc="editor for Markdown markup languages"
|
||||
maintainer="Enno Boland <eb@s01.de>"
|
||||
noarch=yes
|
||||
license="GPL3"
|
||||
homepage="http://retext.sourceforge.net"
|
||||
distfiles="${SOURCEFORGE_SITE}/project/retext/ReText-${version%.*}/ReText-${version}.tar.gz"
|
||||
checksum=e85dfe33e46418d761ad817a3d0971e118f185646f82c158a7e69c0e8ab39541
|
||||
|
||||
post_install() {
|
||||
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/$pkgname.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
|
||||
}
|
Loading…
Reference in a new issue