wok-next view 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 source
1 # SliTaz package receipt v2.
3 PACKAGE="karmen"
4 VERSION="0.15"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light and minimalistic window manager for X"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://karmen.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="xorg-libX11-dev"
16 compile_rules() {
17 ./configure \
18 --prefix=/usr \
19 $CONFIGURE_ARGS &&
20 make &&
21 make install
22 }
24 genpkg_rules() {
25 mkdir -p $fs/usr/share
26 cp -a $install/usr/bin $fs/usr
27 # Custom configuration and scripts.
28 install -m 0755 $stuff/karmen-session $fs/usr/bin
29 install -m 0755 $stuff/karmen-conf $fs/usr/bin
30 cp -a $stuff/xsessions $fs/usr/share
31 cp -a $stuff/etc $fs
32 chown 0.0 $fs/usr/bin/*
33 DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog"
34 TAGS="window-manager"
35 }
37 post_install() {
38 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
39 # Adding WM to SLIM available sessions.
40 if ! echo "$res" | grep -q $PACKAGE; then
41 echo -n "Adding $PACKAGE to /etc/slim.conf..."
42 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
43 status
44 fi
45 }
47 post_remove() {
48 # Remove WM from SLIM available sessions.
49 if grep -q $PACKAGE "$1/etc/slim.conf"; then
50 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
51 fi
52 }