void-packages/srcpkgs/ReText/template
2014-11-26 22:33:00 +00:00

31 lines
1 KiB
Text

# Template file for 'ReText'
pkgname=ReText
version=5.0.0
revision=1
build_style="python-module"
python_versions="3.4"
hostmakedepends="python3.4 ImageMagick"
depends="python3.4-Markups python3.4-pyside python3.4-Markdown"
short_desc="Editor for Markdown markup languages"
maintainer="Enno Boland <eb@s01.de>"
noarch="yes"
license="GPL3"
homepage="http://retext.sourceforge.net"
update_ignore="*beta*"
distfiles="${SOURCEFORGE_SITE}/retext/ReText-${version%.*}/ReText-${version}.tar.gz"
checksum=acf097c6154ec99a2322f55a200f411e97b8eb0ca0ba411c887ba58ce46365e0
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/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
}