wok-next view dooble/receipt @ rev 21397

opentyrian: add "glib" to bdeps for /usr/bin/glib-compile-schemas
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 18 17:26:44 2020 +0300 (2020-04-18)
parents 2809ecb8c754
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dooble"
4 VERSION="1.56d"
5 CATEGORY="network"
6 SHORT_DESC="Private mode only (almost) worst Qt webkit browser. With builtin fm & xterm"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="BSD"
9 WEB_SITE="https://dooble.sourceforge.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/Dooble-$VERSION-src.tar.gz"
14 BUILD_DEPENDS="wget cacerts qt5-dev libgcrypt-dev sqlite3-dev qtwebkit"
16 compile_rules() {
17 srcdir="$src/Version 1.x"; cd $srcdir
18 # find . -regex '.*\(win32\|osx64\|icns\).*' -exec ls -l {} \; -delete
19 sed -i 's|local/dooble/do|bin/do|g' dooble.desktop
20 qmake PREFIX="/usr/" $PACKAGE.qt5.pro
21 make &&
22 make INSTALL_ROOT=$install install || return 1
23 # rm -rf $install/usr/local/$PACKAGE/D${PACKAGE:1}
24 mkdir -p $install/usr/share $install/usr/bin $install/usr/lib
25 install $src/libSpotOn/libspoton.so $install/usr/lib
26 install $src/D${PACKAGE:1} $install/usr/bin
27 # rm -rf $srcdir/temp $srcdir/T* $srcdir/D${PACKAGE:1}
28 # mv $install/usr/local/$PACKAGE $install/usr/share/
29 # rm $install/usr/share/$PACKAGE/Icons/AxB/dooble.ico
30 # cd $install/usr/share/$PACKAGE && rm -rf Tab Images
31 }
33 genpkg_rules() {
34 mkdir -p $fs/usr/bin $fs/usr/share/$PACKAGE
35 cp -a $src/D${PACKAGE:1} $fs/usr/bin
36 cp -a $src/libSpotOn/libspoton.so $fs/usr/lib
37 # cp -a $install/* $fs
38 # cd $fs/usr/share/$PACKAGE; ln -s ../../bin/D${PACKAGE:1} D${PACKAGE:1}
39 # cd $fs/usr/share/$PACKAGE/Icons; rm -rf 64x64 nuovext nuvola black-and-white && ln -s faience nuovext
40 # cd $fs/usr/share/$PACKAGE/Translations; find . -size -44k -delete
41 # mv $fs/usr/share/$PACKAGE/$PACKAGE.sh $fs/usr/bin/ && cd $fs/usr/bin
42 # sed -i 's|local/dooble/Dooble|bin/Dooble|g' $PACKAGE.sh
43 # sed -i 's|cd /usr/local/dooble|cd /usr/share/dooble|g' $PACKAGE.sh
44 # sed -i 's/fusion/ /g' $PACKAGE.sh
46 cd $fs/usr/share/$PACKAGE
47 cat>'Dooble.ini' <<EOT
48 [General]
49 iconSet=/usr/share/dooble/Icons/faience/configuration.cfg
50 desktopBackground=/usr/share/images/slitaz-background.jpg
52 [settingsWindow]
53 homeUrl=file:/usr/share/webhome/index.html
54 fixedWebFont="Fixed,10,-1,5,50,0,0,0,0,0"
55 p2pUrl=qrc:/search_c.html
56 showAuthentication=false
58 [mainWindow]
59 searchName=DuckDuckGo
60 EOT
61 chown -R root:root $fs
62 DEPENDS="qt5 libgcrypt sqlite3 cacerts"
63 }
65 post_install() {
66 for i in $(ls "$1/home" 2> /dev/null); do
67 [ -f "$1/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
68 mkdir -p "$1/home/$i/.dooble/Dooble"
69 cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
70 rm "$1/home/$i/.local/share/applications/dooble.desktop"
71 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
72 done
73 }
75 post_remove() {
76 rm -rf /home/*/.dooble
77 }