wok-current view karmen/receipt @ rev 21277

updated libpng+apng and libpng+apng-dev (1.6.28 -> 1.6.36)
author Hans-G?nter Theisgen
date Fri Apr 12 17:35:29 2019 +0100 (2019-04-12)
parents 5d53e8ccbc8d
children ba7cbdb5749c
line source
1 # SliTaz package receipt.
3 PACKAGE="karmen"
4 VERSION="0.15"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light and minimalistic window manager for X."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://karmen.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="window-manager"
14 DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog"
15 BUILD_DEPENDS="xorg-libX11-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr \
22 $CONFIGURE_ARGS &&
23 make && make install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share
30 cp -a $install/usr/bin $fs/usr
31 # Custom configuration and scripts.
32 install -m 0755 $stuff/karmen-session $fs/usr/bin
33 install -m 0755 $stuff/karmen-conf $fs/usr/bin
34 cp -a $stuff/xsessions $fs/usr/share
35 cp -a $stuff/etc $fs
36 chown 0.0 $fs/usr/bin/*
37 }
39 post_install()
40 {
41 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
42 # Adding WM to SLIM available sessions.
43 if ! echo "$res" | grep -q $PACKAGE; then
44 echo -n "Adding $PACKAGE to /etc/slim.conf..."
45 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
46 status
47 fi
48 }
50 post_remove()
51 {
52 # Remove WM from SLIM available sessions.
53 if grep -q $PACKAGE "$1/etc/slim.conf"; then
54 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
55 fi
56 }