wok-next annotate dooble/receipt @ rev 20869

mono: fix build on 32-bit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 02 10:15:48 2018 +0300 (2018-07-02)
parents a31657918496
children d5aab818505e
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
pascal@20098 13 DEPENDS="qt5 libgcrypt sqlite3 cacerts "
pascal@20098 14 BUILD_DEPENDS="wget cacerts qt5-dev libgcrypt-dev sqlite3-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@20078 25 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
psychomaniak@20080 26 install $src/libSpotOn/libspoton.so $install/usr/lib
psychomaniak@20080 27 install $src/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@20077 37 mkdir -p $fs/usr/bin $fs/usr/share/$PACKAGE
psychomaniak@20077 38 cp -a $src/D${PACKAGE:1} $fs/usr/bin
psychomaniak@20082 39 cp -a $src/libSpotOn/libspoton.so $fs/usr/lib
psychomaniak@20080 40 # cp -a $install/* $fs
psychomaniak@20077 41 # cd $fs/usr/share/$PACKAGE ; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
psychomaniak@20077 42 # cd $fs/usr/share/$PACKAGE/Icons ; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
psychomaniak@20077 43 # cd $fs/usr/share/$PACKAGE/Translations ; find . -size -44k -delete
psychomaniak@20077 44 # mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
psychomaniak@20077 45 # sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
psychomaniak@20077 46 # sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
psychomaniak@20077 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
al@17096 62 chown -R root:root $fs
psychomaniak@16929 63 }
psychomaniak@17091 64
psychomaniak@17091 65 post_install()
psychomaniak@17091 66 {
pascal@18730 67 for i in $(ls "$1/home" 2> /dev/null); do
pascal@18816 68 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
pascal@18730 69 mkdir -p "$1/home/$i/.dooble/Dooble"
pascal@18730 70 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
pascal@18730 71 rm "$1/home/$i/.local/share/applications/dooble.desktop"
pascal@18730 72 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/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 }