wok-next annotate dooble/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 2809ecb8c754 |
children |
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" |
al@21020 | 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" |
al@21020 | 9 WEB_SITE="https://dooble.sourceforge.io/" |
al@21020 | 10 |
psychomaniak@16929 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21020 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/Dooble-$VERSION-src.tar.gz" |
psychomaniak@16929 | 13 |
pascal@20098 | 14 BUILD_DEPENDS="wget cacerts qt5-dev libgcrypt-dev sqlite3-dev qtwebkit" |
psychomaniak@16929 | 15 |
al@21020 | 16 compile_rules() { |
al@21020 | 17 srcdir="$src/Version 1.x"; cd $srcdir |
psychomaniak@20075 | 18 # find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete |
psychomaniak@17091 | 19 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop |
al@21020 | 20 qmake PREFIX="/usr/" $PACKAGE.qt5.pro |
al@21020 | 21 make && |
al@21020 | 22 make INSTALL_ROOT=$install install || return 1 |
psychomaniak@20075 | 23 # rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1} |
psychomaniak@20078 | 24 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib |
psychomaniak@20080 | 25 install $src/libSpotOn/libspoton.so $install/usr/lib |
psychomaniak@20080 | 26 install $src/D${PACKAGE:1} $install/usr/bin |
psychomaniak@20075 | 27 # rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1} |
psychomaniak@20075 | 28 # mv $install/usr/local/$PACKAGE $install/usr/share/ |
psychomaniak@20075 | 29 # rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico |
psychomaniak@20075 | 30 # cd $install/usr/share/$PACKAGE && rm -rf Tab Images |
psychomaniak@16929 | 31 } |
psychomaniak@16929 | 32 |
al@21020 | 33 genpkg_rules() { |
psychomaniak@20077 | 34 mkdir -p $fs/usr/bin $fs/usr/share/$PACKAGE |
psychomaniak@20077 | 35 cp -a $src/D${PACKAGE:1} $fs/usr/bin |
psychomaniak@20082 | 36 cp -a $src/libSpotOn/libspoton.so $fs/usr/lib |
psychomaniak@20080 | 37 # cp -a $install/* $fs |
al@21020 | 38 # cd $fs/usr/share/$PACKAGE; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1} |
al@21020 | 39 # cd $fs/usr/share/$PACKAGE/Icons; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext |
al@21020 | 40 # cd $fs/usr/share/$PACKAGE/Translations; find . -size -44k -delete |
psychomaniak@20077 | 41 # mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin |
psychomaniak@20077 | 42 # sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh |
psychomaniak@20077 | 43 # sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh |
psychomaniak@20077 | 44 # sed -i 's/fusion/ /g' $PACKAGE.sh |
al@21020 | 45 |
al@21020 | 46 cd $fs/usr/share/$PACKAGE |
al@21020 | 47 cat>'Dooble.ini' <<EOT |
psychomaniak@17091 | 48 [General] |
psychomaniak@17091 | 49 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg |
psychomaniak@17091 | 50 desktopBackground=/usr/share/images/slitaz-background.jpg |
psychomaniak@17091 | 51 |
psychomaniak@17091 | 52 [settingsWindow] |
psychomaniak@17091 | 53 homeUrl=file:/usr/share/webhome/index.html |
psychomaniak@17091 | 54 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0" |
psychomaniak@17091 | 55 p2pUrl=qrc:/search_c.html |
psychomaniak@17091 | 56 showAuthentication=false |
psychomaniak@17091 | 57 |
psychomaniak@17091 | 58 [mainWindow] |
psychomaniak@17091 | 59 searchName=DuckDuckGo |
psychomaniak@17091 | 60 EOT |
al@17096 | 61 chown -R root:root $fs |
al@21020 | 62 DEPENDS="qt5 libgcrypt sqlite3 cacerts" |
psychomaniak@16929 | 63 } |
psychomaniak@17091 | 64 |
al@21020 | 65 post_install() { |
pascal@18730 | 66 for i in $(ls "$1/home" 2> /dev/null); do |
pascal@18816 | 67 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue |
pascal@18730 | 68 mkdir -p "$1/home/$i/.dooble/Dooble" |
pascal@18730 | 69 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble" |
pascal@18730 | 70 rm "$1/home/$i/.local/share/applications/dooble.desktop" |
pascal@18730 | 71 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble" |
psychomaniak@17091 | 72 done |
psychomaniak@17091 | 73 } |
psychomaniak@17091 | 74 |
al@21020 | 75 post_remove() { |
psychomaniak@17091 | 76 rm -rf /home/*/.dooble |
psychomaniak@17091 | 77 } |