2014-05-02 09:45:57 +02:00
|
|
|
# Template file for 'ReText'
|
|
|
|
pkgname=ReText
|
2015-10-07 11:40:30 +02:00
|
|
|
version=5.2.1
|
2015-04-19 11:29:31 +02:00
|
|
|
revision=1
|
2015-01-07 02:17:15 +01:00
|
|
|
noarch=yes
|
2014-05-02 09:45:57 +02:00
|
|
|
build_style="python-module"
|
2014-06-18 13:36:31 +02:00
|
|
|
python_versions="3.4"
|
2015-01-07 02:17:15 +01:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="ReText"
|
|
|
|
makedepends="python3.4 qt5-tools ImageMagick"
|
|
|
|
depends="python3.4-PyQt5-webkit python3.4-Markups python3.4-Markdown
|
|
|
|
desktop-file-utils shared-mime-info"
|
|
|
|
short_desc="Simple editor for Markdown and reStructuredText"
|
2015-08-09 19:08:42 +02:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2015-01-03 12:37:54 +01:00
|
|
|
license="GPL-3"
|
2014-05-02 09:45:57 +02:00
|
|
|
homepage="http://retext.sourceforge.net"
|
2014-11-26 23:33:00 +01:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/retext/ReText-${version%.*}/ReText-${version}.tar.gz"
|
2015-10-07 11:40:30 +02:00
|
|
|
checksum=02164ae2bba6f47a2ec5e11aa06aefbcd96bea1b84a96c5673dbe18d8ccb2a69
|
2014-05-02 09:45:57 +02:00
|
|
|
|
|
|
|
post_install() {
|
2015-01-07 02:17:15 +01:00
|
|
|
lrelease locale/*.ts
|
2014-05-02 09:45:57 +02:00
|
|
|
local icondir=usr/share/icons/hicolor
|
|
|
|
|
|
|
|
for size in 16 22 24 32 48 128; do
|
|
|
|
vmkdir $icondir/${size}x${size}/apps
|
2014-05-03 23:02:21 +02:00
|
|
|
convert -resize $size icons/retext.png $DESTDIR/$icondir/${size}x${size}/apps/retext.png;
|
2014-05-02 09:45:57 +02:00
|
|
|
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
|
|
|
|
}
|