void-packages/srcpkgs/ReText/template

31 lines
1008 B
Plaintext
Raw Normal View History

2014-05-02 09:45:57 +02:00
# Template file for 'ReText'
pkgname=ReText
version=4.1.2
2014-05-03 23:02:21 +02:00
revision=2
2014-05-02 09:45:57 +02:00
build_style="python-module"
python_versions="3.3"
2014-05-02 09:45:57 +02:00
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
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
}