wok annotate pekwm/receipt @ rev 21819
/boot/isolinux/kbd size field is required
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 25 11:13:41 2019 +0200 (2019-08-25) |
parents | 970c5ec9a60a |
children | d443265acbc1 |
rev | line source |
---|---|
jozee@2875 | 1 # SliTaz package receipt. |
jozee@2875 | 2 |
jozee@2875 | 3 PACKAGE="pekwm" |
Hans-G?nter@21673 | 4 VERSION="0.1.17" |
jozee@2875 | 5 CATEGORY="x-window" |
Hans-G?nter@21673 | 6 TAGS="window-manager" |
pankso@2878 | 7 SHORT_DESC="Very light, configurable and themable window manager for X." |
jozee@2875 | 8 MAINTAINER="jozee@slitaz.org" |
pascal@15375 | 9 LICENSE="GPL2" |
Hans-G?nter@21673 | 10 WEB_SITE="http://www.pekwm.org/" |
Hans-G?nter@21673 | 11 |
Hans-G?nter@21673 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21673 | 13 WGET_URL="https://github.com/pekdon/$PACKAGE/archive/release-$VERSION.tar.gz" |
Hans-G?nter@21673 | 14 |
jozee@3027 | 15 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl" |
pascal@15375 | 16 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" |
Hans-G?nter@21673 | 17 BUILD_DEPENDS="automake xorg-dev xorg-dev-proto zlib-dev" |
pascal@15375 | 18 |
jozee@2875 | 19 # Rules to configure and make the package. |
jozee@2875 | 20 compile_rules() |
jozee@2875 | 21 { |
Hans-G?nter@21673 | 22 ./autogen.sh && |
Hans-G?nter@21673 | 23 ./configure \ |
Hans-G?nter@21673 | 24 --prefix=/usr \ |
Hans-G?nter@21673 | 25 --sysconfdir=/etc \ |
Hans-G?nter@21673 | 26 $CONFIGURE_ARGS && |
pankso@2878 | 27 make && |
slaxemulator@11052 | 28 make DESTDIR=$DESTDIR install |
jozee@2875 | 29 } |
jozee@2875 | 30 |
jozee@2875 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2875 | 32 genpkg_rules() |
jozee@2875 | 33 { |
Hans-G?nter@21673 | 34 mkdir -p $fs/usr/bin |
Hans-G?nter@21673 | 35 mkdir -p $fs/usr/share/pekwm |
Hans-G?nter@21673 | 36 mkdir -p $fs/etc |
Hans-G?nter@21673 | 37 |
Hans-G?nter@21673 | 38 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21673 | 39 cp -a $install/usr/share/pekwm $fs/usr/share |
Hans-G?nter@21673 | 40 cp -a $install/etc $fs |
Hans-G?nter@21673 | 41 |
pankso@2880 | 42 # Custom configuration files and scripts |
Hans-G?nter@21673 | 43 cp -a $stuff/etc $fs |
Hans-G?nter@21673 | 44 cp -a $stuff/scripts $fs/usr/share/pekwm |
Hans-G?nter@21673 | 45 |
Hans-G?nter@21673 | 46 # Set permissions |
jozee@2875 | 47 chown -R root.root $fs |
pankso@2878 | 48 chmod +x $fs/etc/pekwm/start |
pankso@2878 | 49 chmod +x $fs/usr/share/pekwm/scripts/* |
jozee@2875 | 50 chmod 0755 $fs/usr/bin/pekwm |
jozee@2875 | 51 } |
jozee@2875 | 52 |
jozee@2875 | 53 post_install() |
jozee@2875 | 54 { |
Hans-G?nter@21673 | 55 # Pekwm searches for default font path (100dpi folder) for xserver to render |
pankso@2878 | 56 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts |
pankso@2878 | 57 # by linking to ttf-dejavu |
pascal@18730 | 58 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then |
pascal@18730 | 59 mkdir -p "$1/usr/share/fonts/X11/100dpi" |
pascal@18730 | 60 cd "$1/usr/share/fonts/X11/100dpi" |
pankso@2878 | 61 ln -s ../../truetype/ttf-dejavu/* . |
pankso@2878 | 62 fi |
jozee@2875 | 63 |
pascal@18730 | 64 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
jozee@2875 | 65 # Adding WM to SLIM available sessions. |
jozee@2875 | 66 if ! echo "$res" | grep -q $PACKAGE; then |
pascal@20319 | 67 echo |
jozee@2875 | 68 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 69 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
jozee@2875 | 70 status |
jozee@2875 | 71 fi |
jozee@2875 | 72 } |
jozee@2875 | 73 |
jozee@2875 | 74 post_remove() |
jozee@2875 | 75 { |
pankso@2878 | 76 # Remove WM from SLIM available sessions. |
pascal@18730 | 77 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 78 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
jozee@2875 | 79 fi |
jozee@2875 | 80 } |