#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) # # Needs imagemagick to build properly pkgname=notecase pkgver=1.9.8 pkgrel=1 zenver=54 arch=i486 source=("http://prdownloads.sourceforge.net/notecase/notecase-${pkgver}_src.tar.gz" "http://pnboy.pinguix.com/gapan/$pkgname/icons.tar.gz") sourcetemplate=http://pnboy.pinguix.com/gapan/$pkgname docs=("readme*" "license*" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://notecase.sourceforge.net/ options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') doinst() { # update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "notecase is a hierarchical note manager" "NoteCase helps you to organize your everyday text notes into a" "single document, with individual notes placed in the tree-like" "structure. To ensure your privacy, encrypted document format is" "supported, along with standard unencrypted format. " ) build() { cd $startdir/src/$pkgname-$pkgver # Patch for proper flags sed -i -e 's/-O / /' src/lib/zlib/Makefile make || return 1 make install DESTDIR=$startdir/pkg # Fix the desktop entry sed -i -e 's/.xpm//' $startdir/pkg/usr/share/applications/notecase.desktop # Make icons appear in the directories they should mkdir -p $startdir/pkg/usr/share/icons/hicolor/32x32/apps cd $startdir/pkg/usr/share/icons/hicolor/32x32/apps convert ../../../../pixmaps/notecase.xpm notecase.png ICONSIZES="64 48 32" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/mimetypes; mv $startdir/src/gnome-mime-application-notecase-plain-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/mimetypes/gnome-mime-application-notecase-plain.png; done; # Link help file in docs mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cd $startdir/pkg/usr/doc/$pkgname-$pkgver ln -sf ../../share/doc/$pkgname/help.ncd help.ncd }