wok-6.x annotate dooble/receipt @ rev 24539

updated fbgrab (1.3 -> 1.5)
author Hans-G?nter Theisgen
date Wed Feb 23 15:32:13 2022 +0100 (2022-02-23)
parents b560cb576d39
children 429ffdcd660a
rev   line source
psychomaniak@16929 1 # SliTaz package receipt.
psychomaniak@16929 2
psychomaniak@16929 3 PACKAGE="dooble"
Hans-G?nter@22655 4 VERSION="2019.12.25"
al@17516 5 CATEGORY="network"
Hans-G?nter@22655 6 SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm and xterm."
psychomaniak@16929 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@16929 8 LICENSE="BSD"
Hans-G?nter@22655 9 WEB_SITE="https://textbrowser.github.io/dooble"
Hans-G?nter@22655 10
psychomaniak@16929 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22655 12 WGET_URL="https://github.com/textbrowser/$PACKAGE/archive/$VERSION.tar.gz"
psychomaniak@16929 13
psychomaniak@17091 14 SUGGESTED="libQtWebkit-video"
Hans-G?nter@22655 15 DEPENDS="cacerts libgcrypt libQtCore libQtDBus libQtGui libQtNetwork
Hans-G?nter@22655 16 libQtScript libQtSql libQtWebkit libQtXml sqlite"
Hans-G?nter@22655 17 BUILD_DEPENDS="cacerts libgcrypt-dev qmake Qt4-dev sqlite-dev"
psychomaniak@16929 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
psychomaniak@16929 25 # Rules to configure and make the package.
psychomaniak@16929 26 compile_rules()
psychomaniak@16929 27 {
Hans-G?nter@22655 28 srcdir="$src/1.x"
Hans-G?nter@22655 29 cd $srcdir &&
Hans-G?nter@22655 30 sed -i 's|local/dooble/do|bin/do|g' \
Hans-G?nter@22655 31 dooble.desktop
Hans-G?nter@22655 32
Hans-G?nter@22655 33 qmake PREFIX="/usr/" DESTDIR=$DESTDIR $PACKAGE.pro &&
Hans-G?nter@22655 34 make &&
Hans-G?nter@22655 35
Hans-G?nter@22655 36 mkdir -p $install/usr/bin
Hans-G?nter@22655 37 mkdir -p $install/usr/lib
Hans-G?nter@22655 38 mkdir -p $install/usr/share/$PACKAGE/Translations
Hans-G?nter@22655 39
Hans-G?nter@22655 40 mv $install/Dooble $install/usr/bin
Hans-G?nter@22655 41 cp -a $srcdir/dooble.sh $install/usr/bin
Hans-G?nter@22655 42 install $srcdir/libSpotOn/libspoton.so $install/usr/lib
Hans-G?nter@22655 43 cp -a $srcdir/Icons $install/usr/share/$PACKAGE
Hans-G?nter@22655 44 cp -a $srcdir/Translations/*.qm $install/usr/share/$PACKAGE/Translations
Hans-G?nter@22655 45 cp -a $srcdir/Archived/Plugins $install/usr/share/$PACKAGE
psychomaniak@16929 46 }
psychomaniak@16929 47
psychomaniak@16929 48 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@16929 49 genpkg_rules()
psychomaniak@16929 50 {
Hans-G?nter@22655 51 cp -a $install/* $fs
Hans-G?nter@22655 52
Hans-G?nter@22655 53 cd $fs/usr/share/$PACKAGE &&
Hans-G?nter@22655 54 ln -s ../../bin/Dooble Dooble
Hans-G?nter@22655 55
Hans-G?nter@22655 56 cd $fs/usr/share/$PACKAGE/Icons &&
Hans-G?nter@22655 57 rm -rf 64x64 nuovext nuvola black-and-white &&
Hans-G?nter@22655 58 ln -s faience nuovext
Hans-G?nter@22655 59
Hans-G?nter@22655 60 cd $fs/usr/share/$PACKAGE/Translations
Hans-G?nter@22655 61 find . -size -44k -delete
Hans-G?nter@22655 62
Hans-G?nter@22655 63 # object program
Hans-G?nter@22655 64 sed -i 's|local/dooble/Dooble|bin/Dooble|g' \
Hans-G?nter@22655 65 $fs/usr/bin/$PACKAGE.sh
Hans-G?nter@22655 66
Hans-G?nter@22655 67 # shared files
Hans-G?nter@22655 68 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' \
Hans-G?nter@22655 69 $fs/usr/bin/$PACKAGE.sh
Hans-G?nter@22655 70
Hans-G?nter@22655 71 sed -i 's/fusion/ /g' \
Hans-G?nter@22655 72 $fs/usr/bin/$PACKAGE.sh
Hans-G?nter@22655 73
Hans-G?nter@22655 74 cd $fs/usr/share/$PACKAGE &&
Hans-G?nter@22655 75 cat>'Dooble.ini' << EOT
psychomaniak@17091 76 [General]
psychomaniak@17091 77 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
psychomaniak@17091 78 desktopBackground=/usr/share/images/slitaz-background.jpg
psychomaniak@17091 79
psychomaniak@17091 80 [settingsWindow]
psychomaniak@17091 81 homeUrl=file:/usr/share/webhome/index.html
psychomaniak@17091 82 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
psychomaniak@17091 83 p2pUrl=qrc:/search_c.html
psychomaniak@17091 84 showAuthentication=false
psychomaniak@17091 85
psychomaniak@17091 86 [mainWindow]
psychomaniak@17091 87 searchName=DuckDuckGo
psychomaniak@17091 88 EOT
Hans-G?nter@22655 89
al@17096 90 chown -R root:root $fs
psychomaniak@16929 91 }
psychomaniak@17091 92
psychomaniak@17091 93 post_install()
psychomaniak@17091 94 {
Hans-G?nter@22655 95 for i in $(ls "$1/home" 2> /dev/null)
Hans-G?nter@22655 96 do
Hans-G?nter@22655 97 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] &&
Hans-G?nter@22655 98 continue
pascal@18730 99 mkdir -p "$1/home/$i/.dooble/Dooble"
Hans-G?nter@22655 100 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
pascal@18730 101 rm "$1/home/$i/.local/share/applications/dooble.desktop"
pascal@18730 102 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
psychomaniak@17091 103 done
psychomaniak@17091 104 }
psychomaniak@17091 105
psychomaniak@17091 106 post_remove()
psychomaniak@17091 107 {
psychomaniak@17091 108 echo -n "Removing configuration files..."
psychomaniak@17091 109 rm -rf /home/*/.dooble
psychomaniak@17091 110 status
psychomaniak@17091 111 }