#Maintainer: George Vlahavas # # Needs imagemagick for resizing an icon # patched b/c there is a missing \n in the ca.po file and can't be compiled [by Dimitris Jemos] # also there is an el.po file in this version pkgname=pcmanfm pkgver=0.5.2 pkgrel=2gv source=("http://prdownloads.sourceforge.net/sourceforge/pcmanfm/pcmanfm-$pkgver.tar.bz2" "ca.po.patch" "no-open-as-root.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://pcmanfm.sourceforge.net/ doinst() { if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi if [ -x /usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "pcmanfm (a fast and lightweight file manager)" "PCman file manager is an extremely fast, lightweight, yet feature-rich" "file manager with tabbed browsing." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/no-open-as-root.patch || exit 1 #there is a missing \n in the ca.po file and can't be compiled patch -p1 < $startdir/src/ca.po.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/icons/hicolor/{48x48,128x128}/apps mv $startdir/pkg/usr/share/pixmaps/pcmanfm.png $startdir/pkg/usr/share/icons/hicolor/128x128/apps/ rmdir $startdir/pkg/usr/share/pixmaps convert -resize 48x48 $startdir/pkg/usr/share/icons/hicolor/128x128/apps/pcmanfm.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/pcmanfm.png }