
Receipt for package "karmen"
# SliTaz package receipt. PACKAGE="karmen" VERSION="0.15" CATEGORY="x-window" SHORT_DESC="Very light and minimalistic window manager for X." MAINTAINER="pankso@slitaz.org" LICENSE="MIT" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://karmen.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="window-manager" DEPENDS="xorg-libX11 xorg-xsetroot nano xterm xorg-xclock dialog" BUILD_DEPENDS="xorg-libX11-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/karmen/files/karmen/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/karmen/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src ./configure --prefix=/usr \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr # Custom configuration and scripts. install -m 0755 $stuff/karmen-session $fs/usr/bin install -m 0755 $stuff/karmen-conf $fs/usr/bin cp -a $stuff/xsessions $fs/usr/share cp -a $stuff/etc $fs chown 0.0 $fs/usr/bin/* } post_install() { res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) # Adding WM to SLIM available sessions. if ! echo "$res" | grep -q $PACKAGE; then echo -n "Adding $PACKAGE to /etc/slim.conf..." sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" status fi } post_remove() { # Remove WM from SLIM available sessions. if grep -q $PACKAGE "$1/etc/slim.conf"; then sed -i s/,$PACKAGE// "$1/etc/slim.conf" fi }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)