wok-next annotate pekwm/receipt @ rev 20778
git update: 2.16.2 (Feb-2018) -> 2.17.1 (May-2018)
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Fri Jun 08 09:36:49 2018 +0000 (2018-06-08) |
parents | 9e01bc6321ea |
children | d5aab818505e |
rev | line source |
---|---|
al@20534 | 1 # SliTaz package receipt v2. |
jozee@2875 | 2 |
jozee@2875 | 3 PACKAGE="pekwm" |
slaxemulator@11052 | 4 VERSION="0.1.13" |
jozee@2875 | 5 CATEGORY="x-window" |
al@20534 | 6 SHORT_DESC="Very light, configurable and themable window manager for X" |
jozee@2875 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15375 | 8 LICENSE="GPL2" |
al@20534 | 9 WEB_SITE="http://www.pekwm.org/projects/pekwm" |
al@20534 | 10 |
slaxemulator@11052 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@5613 | 12 WGET_URL="$WEB_SITE/files/$TARBALL" |
jozee@2875 | 13 |
pascal@15375 | 14 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev" |
pascal@15375 | 15 |
al@20534 | 16 compile_rules() { |
al@20534 | 17 ./configure $CONFIGURE_ARGS && |
pankso@2878 | 18 make && |
al@20534 | 19 make DESTDIR=$DESTDIR install || return 1 |
al@20534 | 20 |
al@20534 | 21 # Custom configuration files and scripts |
al@20534 | 22 cp -r $stuff/etc $install |
al@20534 | 23 cp -r $stuff/scripts $install/usr/share/pekwm/ |
al@20534 | 24 |
al@20534 | 25 # Set perms. |
al@20534 | 26 chown -R root:root $install |
al@20534 | 27 chmod +x $install/etc/pekwm/start |
al@20534 | 28 chmod +x $install/usr/share/pekwm/scripts/* |
jozee@2875 | 29 } |
jozee@2875 | 30 |
al@20534 | 31 genpkg_rules() { |
al@20534 | 32 copy @std |
al@20534 | 33 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" |
al@20534 | 34 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl" |
al@20534 | 35 TAGS="window-manager" |
jozee@2875 | 36 } |
jozee@2875 | 37 |
al@20534 | 38 post_install() { |
pankso@2878 | 39 # Pekwm searches for default font path (100dpi folder) for xsever to render |
pankso@2878 | 40 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts |
pankso@2878 | 41 # by linking to ttf-dejavu |
pascal@18730 | 42 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then |
pascal@18730 | 43 mkdir -p "$1/usr/share/fonts/X11/100dpi" |
pascal@18730 | 44 cd "$1/usr/share/fonts/X11/100dpi" |
pankso@2878 | 45 ln -s ../../truetype/ttf-dejavu/* . |
pankso@2878 | 46 fi |
jozee@2875 | 47 |
pascal@18730 | 48 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
jozee@2875 | 49 # Adding WM to SLIM available sessions. |
jozee@2875 | 50 if ! echo "$res" | grep -q $PACKAGE; then |
pascal@18730 | 51 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
jozee@2875 | 52 fi |
jozee@2875 | 53 } |
jozee@2875 | 54 |
al@20534 | 55 post_remove() { |
pankso@2878 | 56 # Remove WM from SLIM available sessions. |
pascal@18730 | 57 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 58 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
jozee@2875 | 59 fi |
jozee@2875 | 60 } |