#Maintainer: Pedro Pinto (pnboy~AT~pinguix.com) pkgname=httrack pkgver=3.43.9B _pkgver=3.43-9B pkgrel=1 zenver=64 arch=i486 source=(http://www.httrack.com/$pkgname-$_pkgver.tar.gz) sourcetemplate=http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/ docs=(AUTHORS COPYING ChangeLog NEWS INSTALL* README) url=http://www.httrack.com/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (Copy websites to your computer (Offline browser))" "HTTrack is a free (open source) and easy-to-use offline browser" "utility. Download a World Wide Web site from the Internet to a local" "directory. Builds recursively all directories. Getting HTML, images," "and other files from the server. HTTrack arranges the original site's" "relative link-structure. Simply open a page of the \"mirrored\" website" "in your browser. You can browse the site from link to link, as if you" "were viewing it online. It can update an existing mirrored site, and" "resume interrupted downloads. It is fully configurable, and has an" "integrated help system." ) build() { cd $startdir/src/$pkgname-${pkgver/B//} ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --program-prefix="" --disable-static make || return 1 make install DESTDIR=$startdir/pkg # Fix documentation directory: mv $startdir/pkg/usr/share/doc $startdir/pkg/usr mv $startdir/pkg/usr/doc/$NAME $startdir/pkg/usr/doc/$NAME-$VERSION # Fixes mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ if [ ! -f $CWD/webhttrack.png ]; then convert $startdir/pkg/usr/share/httrack/icons/webhttrack.xpm $startdir/pkg/usr/share/icons/hicolor/48x48/apps/webhttrack.png rm -rf $startdir/pkg/usr/share/httrack/icons else cp $CWD/webhttrack.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/webhttrack.png fi sed -i -e 's|Icon=/usr/share/httrack/icons/webhttrack.xpm|Icon=webhttrack|g' $startdir/pkg/usr/share/applications/WebHTTrack.desktop sed -i -e 's|Icon=/usr/share/httrack/icons/webhttrack.xpm|Icon=webhttrack|g' $startdir/pkg/usr/share/applications/WebHTTrack-Websites.desktop }