wok-current view karmen/receipt @ rev 25478

icedtea6-jdk: adjusted ecj version
author Hans-G?nter Theisgen
date Fri Oct 14 06:10:44 2022 +0100 (2022-10-14)
parents ba7cbdb5749c
children
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="https://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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/karmen/files/karmen/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/karmen/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 ./configure --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 # Custom configuration and scripts.
40 install -m 0755 $stuff/karmen-session $fs/usr/bin
41 install -m 0755 $stuff/karmen-conf $fs/usr/bin
42 cp -a $stuff/xsessions $fs/usr/share
43 cp -a $stuff/etc $fs
44 chown 0.0 $fs/usr/bin/*
45 }
47 post_install()
48 {
49 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
50 # Adding WM to SLIM available sessions.
51 if ! echo "$res" | grep -q $PACKAGE; then
52 echo -n "Adding $PACKAGE to /etc/slim.conf..."
53 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
54 status
55 fi
56 }
58 post_remove()
59 {
60 # Remove WM from SLIM available sessions.
61 if grep -q $PACKAGE "$1/etc/slim.conf"; then
62 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
63 fi
64 }