wok-next view karmen/receipt @ rev 21650

updated ffmpegthumbnailer (2.2.0 -> 2.2.2)
author Hans-G?nter Theisgen
date Fri Jun 26 20:48:13 2020 +0100 (2020-06-26)
parents d5aab818505e
children
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="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="libx11 xsetroot nano xterm 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 }