wok-next annotate dooble/receipt @ rev 20075
tiny edit
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 08:30:39 2017 +0200 (2017-10-25) |
parents | 74795b18be61 |
children | d69dcf6fcb1c |
rev | line source |
---|---|
psychomaniak@16929 | 1 # SliTaz package receipt. |
psychomaniak@16929 | 2 |
psychomaniak@16929 | 3 PACKAGE="dooble" |
psychomaniak@20072 | 4 VERSION="1.56d" |
al@17516 | 5 CATEGORY="network" |
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@20072 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/files/Dooble-${VERSION}-src.tar.gz" |
psychomaniak@16929 | 12 |
psychomaniak@20072 | 13 DEPENDS="qt5 libgcrypt sqlite cacerts " |
psychomaniak@20074 | 14 BUILD_DEPENDS="wget cacerts qt5-dev libgcrypt-dev sqlite-dev qtwebkit" |
psychomaniak@16929 | 15 |
psychomaniak@16929 | 16 # Rules to configure and make the package. |
psychomaniak@16929 | 17 compile_rules() |
psychomaniak@16929 | 18 { |
psychomaniak@20073 | 19 srcdir="$src/Version 1.x" ; cd $srcdir |
psychomaniak@20075 | 20 # find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete |
psychomaniak@17091 | 21 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop |
psychomaniak@20073 | 22 qmake PREFIX="/usr/" ${PACKAGE}.qt5.pro |
psychomaniak@16929 | 23 make && make INSTALL_ROOT=$install install |
psychomaniak@20075 | 24 # rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1} |
psychomaniak@20075 | 25 # mkdir -p $install/usr/share $install/usr/bin $install/usr/lib |
psychomaniak@20075 | 26 # install $srcdir/libSpotOn/libspoton.so $install/usr/lib |
psychomaniak@20075 | 27 # install $srcdir/D${PACKAGE:1} $install/usr/bin |
psychomaniak@20075 | 28 # rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1} |
psychomaniak@20075 | 29 # mv $install/usr/local/$PACKAGE $install/usr/share/ |
psychomaniak@20075 | 30 # rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico |
psychomaniak@20075 | 31 # cd $install/usr/share/$PACKAGE && rm -rf Tab Images |
psychomaniak@16929 | 32 } |
psychomaniak@16929 | 33 |
psychomaniak@16929 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@16929 | 35 genpkg_rules() |
psychomaniak@16929 | 36 { |
psychomaniak@17091 | 37 cp -a $install/* $fs ; rm -rf $fs/home $fs/usr/local |
psychomaniak@17091 | 38 cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1} |
psychomaniak@17091 | 39 cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext |
psychomaniak@17094 | 40 cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete |
psychomaniak@17091 | 41 mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin |
psychomaniak@17091 | 42 sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh |
psychomaniak@17091 | 43 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh |
psychomaniak@17091 | 44 sed -i 's/fusion/ /g' $PACKAGE.sh |
psychomaniak@17091 | 45 cd $fs/usr/share/$PACKAGE ; cat>'Dooble.ini' << EOT |
psychomaniak@17091 | 46 [General] |
psychomaniak@17091 | 47 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg |
psychomaniak@17091 | 48 desktopBackground=/usr/share/images/slitaz-background.jpg |
psychomaniak@17091 | 49 |
psychomaniak@17091 | 50 [settingsWindow] |
psychomaniak@17091 | 51 homeUrl=file:/usr/share/webhome/index.html |
psychomaniak@17091 | 52 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0" |
psychomaniak@17091 | 53 p2pUrl=qrc:/search_c.html |
psychomaniak@17091 | 54 showAuthentication=false |
psychomaniak@17091 | 55 |
psychomaniak@17091 | 56 [mainWindow] |
psychomaniak@17091 | 57 searchName=DuckDuckGo |
psychomaniak@17091 | 58 EOT |
al@17096 | 59 chown -R root:root $fs |
psychomaniak@16929 | 60 } |
psychomaniak@17091 | 61 |
psychomaniak@17091 | 62 post_install() |
psychomaniak@17091 | 63 { |
pascal@18730 | 64 for i in $(ls "$1/home" 2> /dev/null); do |
pascal@18816 | 65 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue |
pascal@18730 | 66 mkdir -p "$1/home/$i/.dooble/Dooble" |
pascal@18730 | 67 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble" |
pascal@18730 | 68 rm "$1/home/$i/.local/share/applications/dooble.desktop" |
pascal@18730 | 69 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble" |
psychomaniak@17091 | 70 done |
psychomaniak@17091 | 71 } |
psychomaniak@17091 | 72 |
psychomaniak@17091 | 73 post_remove() |
psychomaniak@17091 | 74 { |
psychomaniak@17091 | 75 echo -n "Removing configuration files..." |
psychomaniak@17091 | 76 rm -rf /home/*/.dooble |
psychomaniak@17091 | 77 status |
psychomaniak@17091 | 78 } |