wok annotate dooble/receipt @ rev 23635
updated scummvm (2.0.0 -> 2.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 20 07:41:02 2020 +0100 (2020-04-20) |
parents | 486dbfc17892 |
children | 5ea0ce1cecc0 |
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 |
psychomaniak@16929 | 19 # Rules to configure and make the package. |
psychomaniak@16929 | 20 compile_rules() |
psychomaniak@16929 | 21 { |
Hans-G?nter@22655 | 22 srcdir="$src/1.x" |
Hans-G?nter@22655 | 23 cd $srcdir && |
Hans-G?nter@22655 | 24 sed -i 's|local/dooble/do|bin/do|g' \ |
Hans-G?nter@22655 | 25 dooble.desktop |
Hans-G?nter@22655 | 26 |
Hans-G?nter@22655 | 27 qmake PREFIX="/usr/" DESTDIR=$DESTDIR $PACKAGE.pro && |
Hans-G?nter@22655 | 28 make && |
Hans-G?nter@22655 | 29 |
Hans-G?nter@22655 | 30 mkdir -p $install/usr/bin |
Hans-G?nter@22655 | 31 mkdir -p $install/usr/lib |
Hans-G?nter@22655 | 32 mkdir -p $install/usr/share/$PACKAGE/Translations |
Hans-G?nter@22655 | 33 |
Hans-G?nter@22655 | 34 mv $install/Dooble $install/usr/bin |
Hans-G?nter@22655 | 35 cp -a $srcdir/dooble.sh $install/usr/bin |
Hans-G?nter@22655 | 36 install $srcdir/libSpotOn/libspoton.so $install/usr/lib |
Hans-G?nter@22655 | 37 cp -a $srcdir/Icons $install/usr/share/$PACKAGE |
Hans-G?nter@22655 | 38 cp -a $srcdir/Translations/*.qm $install/usr/share/$PACKAGE/Translations |
Hans-G?nter@22655 | 39 cp -a $srcdir/Archived/Plugins $install/usr/share/$PACKAGE |
psychomaniak@16929 | 40 } |
psychomaniak@16929 | 41 |
psychomaniak@16929 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@16929 | 43 genpkg_rules() |
psychomaniak@16929 | 44 { |
Hans-G?nter@22655 | 45 cp -a $install/* $fs |
Hans-G?nter@22655 | 46 |
Hans-G?nter@22655 | 47 cd $fs/usr/share/$PACKAGE && |
Hans-G?nter@22655 | 48 ln -s ../../bin/Dooble Dooble |
Hans-G?nter@22655 | 49 |
Hans-G?nter@22655 | 50 cd $fs/usr/share/$PACKAGE/Icons && |
Hans-G?nter@22655 | 51 rm -rf 64x64 nuovext nuvola black-and-white && |
Hans-G?nter@22655 | 52 ln -s faience nuovext |
Hans-G?nter@22655 | 53 |
Hans-G?nter@22655 | 54 cd $fs/usr/share/$PACKAGE/Translations |
Hans-G?nter@22655 | 55 find . -size -44k -delete |
Hans-G?nter@22655 | 56 |
Hans-G?nter@22655 | 57 # object program |
Hans-G?nter@22655 | 58 sed -i 's|local/dooble/Dooble|bin/Dooble|g' \ |
Hans-G?nter@22655 | 59 $fs/usr/bin/$PACKAGE.sh |
Hans-G?nter@22655 | 60 |
Hans-G?nter@22655 | 61 # shared files |
Hans-G?nter@22655 | 62 sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' \ |
Hans-G?nter@22655 | 63 $fs/usr/bin/$PACKAGE.sh |
Hans-G?nter@22655 | 64 |
Hans-G?nter@22655 | 65 sed -i 's/fusion/ /g' \ |
Hans-G?nter@22655 | 66 $fs/usr/bin/$PACKAGE.sh |
Hans-G?nter@22655 | 67 |
Hans-G?nter@22655 | 68 cd $fs/usr/share/$PACKAGE && |
Hans-G?nter@22655 | 69 cat>'Dooble.ini' << EOT |
psychomaniak@17091 | 70 [General] |
psychomaniak@17091 | 71 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg |
psychomaniak@17091 | 72 desktopBackground=/usr/share/images/slitaz-background.jpg |
psychomaniak@17091 | 73 |
psychomaniak@17091 | 74 [settingsWindow] |
psychomaniak@17091 | 75 homeUrl=file:/usr/share/webhome/index.html |
psychomaniak@17091 | 76 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0" |
psychomaniak@17091 | 77 p2pUrl=qrc:/search_c.html |
psychomaniak@17091 | 78 showAuthentication=false |
psychomaniak@17091 | 79 |
psychomaniak@17091 | 80 [mainWindow] |
psychomaniak@17091 | 81 searchName=DuckDuckGo |
psychomaniak@17091 | 82 EOT |
Hans-G?nter@22655 | 83 |
al@17096 | 84 chown -R root:root $fs |
psychomaniak@16929 | 85 } |
psychomaniak@17091 | 86 |
psychomaniak@17091 | 87 post_install() |
psychomaniak@17091 | 88 { |
Hans-G?nter@22655 | 89 for i in $(ls "$1/home" 2> /dev/null) |
Hans-G?nter@22655 | 90 do |
Hans-G?nter@22655 | 91 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && |
Hans-G?nter@22655 | 92 continue |
pascal@18730 | 93 mkdir -p "$1/home/$i/.dooble/Dooble" |
Hans-G?nter@22655 | 94 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble" |
pascal@18730 | 95 rm "$1/home/$i/.local/share/applications/dooble.desktop" |
pascal@18730 | 96 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble" |
psychomaniak@17091 | 97 done |
psychomaniak@17091 | 98 } |
psychomaniak@17091 | 99 |
psychomaniak@17091 | 100 post_remove() |
psychomaniak@17091 | 101 { |
psychomaniak@17091 | 102 echo -n "Removing configuration files..." |
psychomaniak@17091 | 103 rm -rf /home/*/.dooble |
psychomaniak@17091 | 104 status |
psychomaniak@17091 | 105 } |