wok-6.x annotate pekwm/receipt @ rev 19241

GNU/nano is a just nano now.
What about SliTaz GNU/Linux? :)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 28 11:56:06 2016 +0300 (2016-06-28)
parents 5d53e8ccbc8d
children 970c5ec9a60a
rev   line source
jozee@2875 1 # SliTaz package receipt.
jozee@2875 2
jozee@2875 3 PACKAGE="pekwm"
slaxemulator@11052 4 VERSION="0.1.13"
jozee@2875 5 CATEGORY="x-window"
pankso@2878 6 SHORT_DESC="Very light, configurable and themable window manager for X."
jozee@2875 7 MAINTAINER="jozee@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
jozee@3027 9 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl"
slaxemulator@11052 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@5613 11 WEB_SITE="http://www.pekwm.org/projects/pekwm"
pascal@5613 12 WGET_URL="$WEB_SITE/files/$TARBALL"
al@17501 13 TAGS="window-manager"
jozee@2875 14
pascal@15375 15 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
pascal@15375 16 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
pascal@15375 17
jozee@2875 18 # Rules to configure and make the package.
jozee@2875 19 compile_rules()
jozee@2875 20 {
jozee@2875 21 cd $src
pankso@2878 22 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
pankso@2878 23 make &&
slaxemulator@11052 24 make DESTDIR=$DESTDIR install
jozee@2875 25 }
jozee@2875 26
jozee@2875 27 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2875 28 genpkg_rules()
jozee@2875 29 {
pankso@2880 30 mkdir -p $fs/usr/bin $fs/usr/share/pekwm $fs/etc
pascal@15375 31 cp -a $install/usr/bin $fs/usr
pascal@15375 32 cp -a $install/usr/share/pekwm $fs/usr/share
pascal@15375 33 cp -a $install/etc $fs
pankso@2880 34 # Custom configuration files and scripts
slaxemulator@11052 35 cp -a $stuff/etc $fs
slaxemulator@11052 36 cp -a $stuff/scripts $fs/usr/share/pekwm
jozee@2875 37 # Set perms.
jozee@2875 38 chown -R root.root $fs
pankso@2878 39 chmod +x $fs/etc/pekwm/start
pankso@2878 40 chmod +x $fs/usr/share/pekwm/scripts/*
jozee@2875 41 chmod 0755 $fs/usr/bin/pekwm
jozee@2875 42 }
jozee@2875 43
jozee@2875 44 post_install()
jozee@2875 45 {
pankso@2878 46 # Pekwm searches for default font path (100dpi folder) for xsever to render
pankso@2878 47 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
pankso@2878 48 # by linking to ttf-dejavu
pascal@18730 49 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
pascal@18730 50 mkdir -p "$1/usr/share/fonts/X11/100dpi"
pascal@18730 51 cd "$1/usr/share/fonts/X11/100dpi"
pankso@2878 52 ln -s ../../truetype/ttf-dejavu/* .
pankso@2878 53 fi
jozee@2875 54
pascal@18730 55 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
jozee@2875 56 # Adding WM to SLIM available sessions.
jozee@2875 57 if ! echo "$res" | grep -q $PACKAGE; then
jozee@2875 58 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pascal@18730 59 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
jozee@2875 60 status
jozee@2875 61 fi
jozee@2875 62 }
jozee@2875 63
jozee@2875 64 post_remove()
jozee@2875 65 {
pankso@2878 66 # Remove WM from SLIM available sessions.
pascal@18730 67 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 68 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
jozee@2875 69 fi
jozee@2875 70 }