wok-next diff karmen/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 9e01bc6321ea |
children | 5669e8b3be70 |
line diff
1.1 --- a/karmen/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/karmen/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -1,31 +1,27 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="karmen" 1.8 VERSION="0.15" 1.9 CATEGORY="x-window" 1.10 -SHORT_DESC="Very light and minimalistic window manager for X." 1.11 -MAINTAINER="pankso@slitaz.org" 1.12 +SHORT_DESC="Very light and minimalistic window manager for X" 1.13 +MAINTAINER="devel@slitaz.org" 1.14 LICENSE="MIT" 1.15 +WEB_SITE="http://karmen.sourceforge.net/" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://karmen.sourceforge.net/" 1.19 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.20 -TAGS="window-manager" 1.21 1.22 -DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog" 1.23 BUILD_DEPENDS="xorg-libX11-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 \ 1.30 +compile_rules() { 1.31 + ./configure \ 1.32 + --prefix=/usr \ 1.33 $CONFIGURE_ARGS && 1.34 - make && make install 1.35 + make && 1.36 + make install 1.37 } 1.38 1.39 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 -genpkg_rules() 1.41 -{ 1.42 +genpkg_rules() { 1.43 mkdir -p $fs/usr/share 1.44 cp -a $install/usr/bin $fs/usr 1.45 # Custom configuration and scripts. 1.46 @@ -34,21 +30,21 @@ 1.47 cp -a $stuff/xsessions $fs/usr/share 1.48 cp -a $stuff/etc $fs 1.49 chown 0.0 $fs/usr/bin/* 1.50 + DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog" 1.51 + TAGS="window-manager" 1.52 } 1.53 1.54 -post_install() 1.55 -{ 1.56 +post_install() { 1.57 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.58 # Adding WM to SLIM available sessions. 1.59 if ! echo "$res" | grep -q $PACKAGE; then 1.60 echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.61 - sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" 1.62 + sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf" 1.63 status 1.64 fi 1.65 } 1.66 1.67 -post_remove() 1.68 -{ 1.69 +post_remove() { 1.70 # Remove WM from SLIM available sessions. 1.71 if grep -q $PACKAGE "$1/etc/slim.conf"; then 1.72 sed -i s/,$PACKAGE// "$1/etc/slim.conf"