wok-6.x annotate razorqt/receipt @ rev 12332

libvorbis: Clean up. Fixed libvorbis-dev depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 19 08:56:14 2012 +0000 (2012-04-19)
parents
children ae3c4782f920
rev   line source
pankso@12312 1 # SliTaz package receipt.
pankso@12312 2
pankso@12312 3 PACKAGE="razorqt"
pankso@12312 4 VERSION="0.4.1"
pankso@12312 5 CATEGORY="x-window"
pankso@12312 6 SHORT_DESC="Light and fast QT based Desktop Environment."
pankso@12312 7 MAINTAINER="pankso@slitaz.org"
pankso@12312 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@12312 9 WEB_SITE="http://razor-qt.org/"
pankso@12312 10 WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL"
pankso@12312 11 SUGGESTED="razorqt-themes razorqt-appswitcher"
pankso@12312 12
pankso@12312 13 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic"
pankso@12312 14 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev"
pankso@12312 15 # polkit-dev polkit-qt-dev doxygen
pankso@12312 16
pankso@12312 17 # Rules to configure and make the package.
pankso@12312 18 compile_rules()
pankso@12312 19 {
pankso@12312 20 cd $src
pankso@12312 21 cmake -DCMAKE_INSTALL_PREFIX=/usr .
pankso@12312 22 make && make install
pankso@12312 23 }
pankso@12312 24
pankso@12312 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12312 26 genpkg_rules()
pankso@12312 27 {
pankso@12312 28 mkdir -p $fs/usr/lib $fs/usr/share
pankso@12312 29 # Use SliTaz XDG Menu
pankso@12312 30 #cp -a $install/etc $fs
pankso@12312 31 cp -a $install/usr/bin $fs/usr
pankso@12312 32
pankso@12312 33 # Split plugins ?
pankso@12312 34 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12312 35 cp -a $install/usr/lib/razor-* $fs/usr/lib
pankso@12312 36 cp -a $install/usr/share/librazorqt $fs/usr/share
pankso@12312 37 cp -a $install/usr/share/razor $fs/usr/share
pankso@12312 38
pankso@12312 39 # Appswitcher --> razorqt-appswitcher
pankso@12312 40 rm -f $fs/usr/bin/razor-appswitcher
pankso@12312 41
pankso@12312 42 # Themes --> razorqt-themes
pankso@12312 43 rm -rf $fs/usr/share/razor/themes
pankso@12312 44 mkdir -p $fs/usr/share/razor/themes
pankso@12312 45 cp -a $install/usr/share/razor/themes/light \
pankso@12312 46 $fs/usr/share/razor/themes
pankso@12312 47
pankso@12312 48 # Custom SliTaz integration
pankso@12312 49 cp -a $stuff/*.conf $fs/usr/share/razor
pankso@12312 50 }
pankso@12312 51
pankso@12312 52 post_install()
pankso@12312 53 {
pankso@12312 54 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
pankso@12312 55 # Adding WM to SLIM available sessions.
pankso@12312 56 if ! echo "$res" | grep -q $PACKAGE; then
pankso@12312 57 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@12312 58 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
pankso@12312 59 status
pankso@12312 60 fi
pankso@12312 61 }
pankso@12312 62
pankso@12312 63 post_remove()
pankso@12312 64 {
pankso@12312 65 # Remove WM from SLIM available sessions.
pankso@12312 66 if grep -q $PACKAGE $1/etc/slim.conf; then
pankso@12312 67 sed -i s/,$PACKAGE// $1/etc/slim.conf
pankso@12312 68 fi
pankso@12312 69 }