#Maintainer: Paul Marwick pkgname=teagtk pkgver=17.6.6 pkgrel=1 zenver=54 arch=i486 source=("http://switch.dl.sourceforge.net/sourceforge/tea-editor/$pkgname-$pkgver.tar.bz2") sourcetemplate=http://users.zenwalk.org/user-accounts/paul/$pkgname/$pkgver/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url="http://tea-editor.sourceforge.net/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "tea (a modest, easy-to-use GTK+2-based editor)" "TEA is a GTK-2-basee editor with many useful features for HTML" "editing. It features a small footprint, a tabbed layout engine," "support for multiple encodings, code snippets, templates," "customizable hotkeys and more." "" "Note: if upgrading, remove older versions before installing!" ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --enable-enchant make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/applications cat << "EOF" >$startdir/pkg/usr/share/applications/teagtk.desktop [Desktop Entry] Encoding=UTF-8 Name=TEA Editor Comment=Gtk2 based editor Exec=teagtk Terminal=false Type=Application Categories=Application;Development; Icon=tea EOF mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps convert -resize "48x48" -depth 8 $startdir/src/$pkgname-$pkgver/pixmaps/tea_icon_v2.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/tea.png convert -resize "64x64" -depth 8 $startdir/src/$pkgname-$pkgver/pixmaps/tea_icon_v2.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps/tea.png }