wok-next annotate karmen/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
al@21020 | 1 # SliTaz package receipt v2. |
pankso@2894 | 2 |
pankso@2894 | 3 PACKAGE="karmen" |
pankso@2894 | 4 VERSION="0.15" |
pankso@2894 | 5 CATEGORY="x-window" |
al@21020 | 6 SHORT_DESC="Very light and minimalistic window manager for X" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15601 | 8 LICENSE="MIT" |
al@21020 | 9 WEB_SITE="http://karmen.sourceforge.net/" |
al@21020 | 10 |
pankso@2894 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@2894 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@12408 | 13 |
al@21078 | 14 BUILD_DEPENDS="libx11-dev" |
pankso@2894 | 15 |
al@21020 | 16 compile_rules() { |
al@21020 | 17 ./configure \ |
al@21020 | 18 --prefix=/usr \ |
pankso@12408 | 19 $CONFIGURE_ARGS && |
al@21020 | 20 make && |
al@21020 | 21 make install |
pankso@2894 | 22 } |
pankso@2894 | 23 |
al@21020 | 24 genpkg_rules() { |
pankso@12408 | 25 mkdir -p $fs/usr/share |
pascal@15601 | 26 cp -a $install/usr/bin $fs/usr |
pankso@2894 | 27 # Custom configuration and scripts. |
pankso@12408 | 28 install -m 0755 $stuff/karmen-session $fs/usr/bin |
pankso@12408 | 29 install -m 0755 $stuff/karmen-conf $fs/usr/bin |
pankso@12408 | 30 cp -a $stuff/xsessions $fs/usr/share |
pankso@12408 | 31 cp -a $stuff/etc $fs |
pankso@2894 | 32 chown 0.0 $fs/usr/bin/* |
al@21078 | 33 DEPENDS="libx11 xsetroot nano xterm xclock dialog" |
al@21020 | 34 TAGS="window-manager" |
pankso@2894 | 35 } |
pankso@2894 | 36 |
al@21020 | 37 post_install() { |
pascal@18730 | 38 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
pankso@2894 | 39 # Adding WM to SLIM available sessions. |
pankso@2894 | 40 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@2894 | 41 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
al@21020 | 42 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf" |
pankso@2894 | 43 status |
pankso@2894 | 44 fi |
pankso@2894 | 45 } |
pankso@2894 | 46 |
al@21020 | 47 post_remove() { |
pankso@2894 | 48 # Remove WM from SLIM available sessions. |
pascal@18730 | 49 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 50 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@2894 | 51 fi |
pankso@2894 | 52 } |