wok-next annotate dooble/receipt @ rev 17091
dooble: clean $fs
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Thu Aug 28 01:42:21 2014 +0200 (2014-08-28) |
parents | 206afe8cf521 |
children | 1c8a8c24e47e |
rev | line source |
---|---|
psychomaniak@16929 | 1 # SliTaz package receipt. |
psychomaniak@16929 | 2 |
psychomaniak@16929 | 3 PACKAGE="dooble" |
psychomaniak@16929 | 4 VERSION="1.48" |
psychomaniak@16929 | 5 CATEGORY="web" |
psychomaniak@17091 | 6 SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm." |
psychomaniak@16929 | 7 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@16929 | 8 LICENSE="BSD" |
psychomaniak@16929 | 9 WEB_SITE="http://dooble.sourceforge.net" |
psychomaniak@16929 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
psychomaniak@16929 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble.d.tar.gz" |
psychomaniak@16929 | 12 |
psychomaniak@16929 | 13 DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \ |
psychomaniak@17091 | 14 libQtXml libQtWebkit cacerts xdg-utils" |
psychomaniak@16929 | 15 BUILD_DEPENDS="wget cacerts Qt4-dev qmake libgcrypt-dev sqlite-dev" |
psychomaniak@17091 | 16 SUGGESTED="libQtWebkit-video" |
psychomaniak@16929 | 17 |
psychomaniak@16929 | 18 # Rules to configure and make the package. |
psychomaniak@16929 | 19 compile_rules() |
psychomaniak@16929 | 20 { |
psychomaniak@17091 | 21 srcdir="$src/trunk/browser" ; cd $srcdir |
psychomaniak@17091 | 22 find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete |
psychomaniak@17091 | 23 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop |
psychomaniak@17091 | 24 qmake PREFIX="/usr/" $PACKAGE.pro |
psychomaniak@16929 | 25 make && make INSTALL_ROOT=$install install |
psychomaniak@17091 | 26 rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1} |
psychomaniak@17091 | 27 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib |
psychomaniak@17091 | 28 install $srcdir/libSpotOn/libspoton.so $install/usr/lib |
psychomaniak@17091 | 29 install $srcdir/D${PACKAGE:1} $install/usr/bin |
psychomaniak@17091 | 30 rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1} |
psychomaniak@17091 | 31 mv $install/usr/local/$PACKAGE $install/usr/share/ |
psychomaniak@17091 | 32 rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico |
psychomaniak@17091 | 33 cd $install/usr/share/$PACKAGE && rm -rf Tab Images |
psychomaniak@17091 | 34 ln -s Translations ../../local/$PACKAGE/translations |
psychomaniak@16929 | 35 } |
psychomaniak@16929 | 36 |
psychomaniak@16929 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@16929 | 38 genpkg_rules() |
psychomaniak@16929 | 39 { |
psychomaniak@17091 | 40 cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local |
psychomaniak@17091 | 41 cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1} |
psychomaniak@17091 | 42 cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext |
psychomaniak@17091 | 43 cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete |
psychomaniak@17091 | 44 mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin |
psychomaniak@17091 | 45 sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh |
psychomaniak@17091 | 46 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh |
psychomaniak@17091 | 47 sed -i 's/fusion/ /g' $PACKAGE.sh |
psychomaniak@17091 | 48 cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT |
psychomaniak@17091 | 49 [General] |
psychomaniak@17091 | 50 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg |
psychomaniak@17091 | 51 desktopBackground=/usr/share/images/slitaz-background.jpg |
psychomaniak@17091 | 52 |
psychomaniak@17091 | 53 [settingsWindow] |
psychomaniak@17091 | 54 homeUrl=file:/usr/share/webhome/index.html |
psychomaniak@17091 | 55 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0" |
psychomaniak@17091 | 56 p2pUrl=qrc:/search_c.html |
psychomaniak@17091 | 57 showAuthentication=false |
psychomaniak@17091 | 58 |
psychomaniak@17091 | 59 [mainWindow] |
psychomaniak@17091 | 60 searchName=DuckDuckGo |
psychomaniak@17091 | 61 EOT |
psychomaniak@17091 | 62 |
psychomaniak@16929 | 63 } |
psychomaniak@17091 | 64 |
psychomaniak@17091 | 65 post_install() |
psychomaniak@17091 | 66 { |
psychomaniak@17091 | 67 for i in $(ls $1/home 2> /dev/null); do |
psychomaniak@17091 | 68 [ -f /home/$i/.dooble/Dooble/Dooble.ini ] && continue |
psychomaniak@17091 | 69 mkdir -p $1/home/$i/.dooble/Dooble |
psychomaniak@17091 | 70 cp $1/usr/share/dooble/Dooble.ini $1/home/$i/.dooble/Dooble |
psychomaniak@17091 | 71 rm $1/home/$i/.local/share/applications/dooble.desktop |
psychomaniak@17091 | 72 chroot $1/ chown -R $i.users /home/$i/.dooble |
psychomaniak@17091 | 73 done |
psychomaniak@17091 | 74 } |
psychomaniak@17091 | 75 |
psychomaniak@17091 | 76 post_remove() |
psychomaniak@17091 | 77 { |
psychomaniak@17091 | 78 echo -n "Removing configuration files..." |
psychomaniak@17091 | 79 rm -rf /home/*/.dooble |
psychomaniak@17091 | 80 status |
psychomaniak@17091 | 81 } |