#Packager: George Vlahavas pkgname=stardict pkgver=3.0.1 pkgrel=1gv arch=x86_64 source=("http://downloads.sourceforge.net/stardict/stardict-3.0.1.tar.bz2" "stardict-3.0.1-gcc4.3.3.patch" "stardict-transparent.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls" "faq" "hacking" "HowToCreateDictionary" "StarDictFileFormat" "Translation") url=http://stardict.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "stardict (a GTK+2 dictionary tool)" "StarDict is a Cross-Platform and international dictionary Software. It" "has powerful features such as \"Glob-style pattern matching\", \"Scan" "selection word,\" \"Fuzzy query,\" etc." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/stardict-3.0.1-gcc4.3.3.patch || exit 1 patch src/eggtrayicon.c -p1 < $startdir/src/stardict-transparent.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-schemas-install --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-gucharmap --disable-gnome-support --disable-festival --disable-espeak make || return 1 make install DESTDIR=$startdir/pkg sed -i 's/.png//' $startdir/pkg/usr/share/applications/stardict.desktop mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps ( cd $startdir/pkg/usr/share/icons/hicolor/48x48/apps ln -s ../../../../pixmaps/stardict.png stardirct.png ) }