wok-next diff pekwm/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 9e01bc6321ea |
children | d5aab818505e |
line diff
1.1 --- a/pekwm/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/pekwm/receipt Fri Apr 27 15:12:17 2018 +0300 1.3 @@ -1,48 +1,41 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="pekwm" 1.8 VERSION="0.1.13" 1.9 CATEGORY="x-window" 1.10 -SHORT_DESC="Very light, configurable and themable window manager for X." 1.11 +SHORT_DESC="Very light, configurable and themable window manager for X" 1.12 MAINTAINER="jozee@slitaz.org" 1.13 LICENSE="GPL2" 1.14 -SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl" 1.15 +WEB_SITE="http://www.pekwm.org/projects/pekwm" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.18 -WEB_SITE="http://www.pekwm.org/projects/pekwm" 1.19 WGET_URL="$WEB_SITE/files/$TARBALL" 1.20 -TAGS="window-manager" 1.21 1.22 -DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" 1.23 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 - cd $src 1.29 - ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS && 1.30 +compile_rules() { 1.31 + ./configure $CONFIGURE_ARGS && 1.32 make && 1.33 - make DESTDIR=$DESTDIR install 1.34 + make DESTDIR=$DESTDIR install || return 1 1.35 + 1.36 + # Custom configuration files and scripts 1.37 + cp -r $stuff/etc $install 1.38 + cp -r $stuff/scripts $install/usr/share/pekwm/ 1.39 + 1.40 + # Set perms. 1.41 + chown -R root:root $install 1.42 + chmod +x $install/etc/pekwm/start 1.43 + chmod +x $install/usr/share/pekwm/scripts/* 1.44 } 1.45 1.46 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.47 -genpkg_rules() 1.48 -{ 1.49 - mkdir -p $fs/usr/bin $fs/usr/share/pekwm $fs/etc 1.50 - cp -a $install/usr/bin $fs/usr 1.51 - cp -a $install/usr/share/pekwm $fs/usr/share 1.52 - cp -a $install/etc $fs 1.53 - # Custom configuration files and scripts 1.54 - cp -a $stuff/etc $fs 1.55 - cp -a $stuff/scripts $fs/usr/share/pekwm 1.56 - # Set perms. 1.57 - chown -R root.root $fs 1.58 - chmod +x $fs/etc/pekwm/start 1.59 - chmod +x $fs/usr/share/pekwm/scripts/* 1.60 - chmod 0755 $fs/usr/bin/pekwm 1.61 +genpkg_rules() { 1.62 + copy @std 1.63 + DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" 1.64 + SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl" 1.65 + TAGS="window-manager" 1.66 } 1.67 1.68 -post_install() 1.69 -{ 1.70 +post_install() { 1.71 # Pekwm searches for default font path (100dpi folder) for xsever to render 1.72 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts 1.73 # by linking to ttf-dejavu 1.74 @@ -55,14 +48,11 @@ 1.75 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.76 # Adding WM to SLIM available sessions. 1.77 if ! echo "$res" | grep -q $PACKAGE; then 1.78 - echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.79 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" 1.80 - status 1.81 fi 1.82 } 1.83 1.84 -post_remove() 1.85 -{ 1.86 +post_remove() { 1.87 # Remove WM from SLIM available sessions. 1.88 if grep -q $PACKAGE "$1/etc/slim.conf"; then 1.89 sed -i s/,$PACKAGE// "$1/etc/slim.conf"