wok-6.x annotate blackbox/receipt @ rev 25120
updated pekwm (0.1.17 -> 0.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 26 10:18:40 2022 +0100 (2022-06-26) |
parents | d8c28080cd55 |
children |
rev | line source |
---|---|
pascal@11217 | 1 # SliTaz package receipt. |
pascal@11217 | 2 |
pascal@11217 | 3 PACKAGE="blackbox" |
Hans-G?nter@24370 | 4 VERSION="0.77" |
pascal@11217 | 5 CATEGORY="x-window" |
Hans-G?nter@22542 | 6 TAGS="window-manager" |
Hans-G?nter@22542 | 7 SHORT_DESC="A small, fast, full-featured window manager for X." |
pascal@11217 | 8 MAINTAINER="devl547@gmail.com" |
pascal@15579 | 9 LICENSE="MIT" |
pascal@20671 | 10 WEB_SITE="https://github.com/bbidulock/blackboxwm" |
Hans-G?nter@24370 | 11 REPOLOGY="blackbox-wm" |
pascal@11217 | 12 |
Hans-G?nter@22542 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22542 | 14 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
Hans-G?nter@22542 | 15 |
Hans-G?nter@24370 | 16 SUGGESTED="blackbox-lang" |
Hans-G?nter@24370 | 17 DEPENDS="xorg-libXft xorg-libXt" |
Hans-G?nter@24370 | 18 BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev xorg-libXft-dev |
Hans-G?nter@24370 | 19 xorg-libXt-dev xorg-xextproto" |
pascal@11217 | 20 |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24055 | 23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
pascal@11217 | 27 # Rules to configure and make the package. |
pascal@11217 | 28 compile_rules() |
pascal@11217 | 29 { |
Hans-G?nter@22542 | 30 # patch -p1 < $stuff/blackbox-0.70.1-gcc-4.3.patch |
Hans-G?nter@22542 | 31 # patch -p0 < $stuff/blackbox-0.70.1-asneeded.patch |
Hans-G?nter@22542 | 32 # patch -p1 < $stuff/textpropertytostring-unconditional.patch |
al@19278 | 33 |
Hans-G?nter@22545 | 34 ./autogen.sh && |
Hans-G?nter@22542 | 35 ./configure \ |
Hans-G?nter@22542 | 36 CC=gcc-83 \ |
Hans-G?nter@22542 | 37 CXX=g++-83 \ |
Hans-G?nter@22542 | 38 --sysconfdir=/etc \ |
Hans-G?nter@22542 | 39 --libexecdir=/usr/bin \ |
Hans-G?nter@22542 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@22542 | 41 $CONFIGURE_ARGS && |
Hans-G?nter@24370 | 42 make && |
pascal@11217 | 43 make DESTDIR=$DESTDIR install |
pascal@11217 | 44 } |
pascal@11217 | 45 |
pascal@11217 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11217 | 47 genpkg_rules() |
pascal@11217 | 48 { |
pascal@11217 | 49 mkdir -p $fs/usr/share |
Hans-G?nter@22542 | 50 |
Hans-G?nter@22542 | 51 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22542 | 52 cp -a $install/usr/share/blackbox $fs/usr/share |
Hans-G?nter@24370 | 53 |
Hans-G?nter@24370 | 54 # menu suitable for SliTaz |
Hans-G?nter@24370 | 55 cp -a $stuff/menu $fs/usr/share/blackbox |
pascal@11217 | 56 } |
Hans-G?nter@24370 | 57 |
Hans-G?nter@24370 | 58 post_install() |
Hans-G?nter@24370 | 59 { |
Hans-G?nter@24370 | 60 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
Hans-G?nter@24370 | 61 # Add window manager to SLIM available sessions. |
Hans-G?nter@24370 | 62 if ! echo "$res" | grep -q $PACKAGE |
Hans-G?nter@24370 | 63 then |
Hans-G?nter@24370 | 64 sed -i "s|^sessions.*|sessions ${res},$PACKAGE|" \ |
Hans-G?nter@24370 | 65 "$1/etc/slim.conf" |
Hans-G?nter@24370 | 66 fi |
Hans-G?nter@24370 | 67 } |
Hans-G?nter@24370 | 68 |
Hans-G?nter@24370 | 69 post_remove() |
Hans-G?nter@24370 | 70 { |
Hans-G?nter@24370 | 71 # Remove window manager from SLIM available sessions. |
Hans-G?nter@24370 | 72 if grep -q $PACKAGE "$1/etc/slim.conf" |
Hans-G?nter@24370 | 73 then |
Hans-G?nter@24370 | 74 sed -i "s|,$PACKAGE||" "$1/etc/slim.conf" |
Hans-G?nter@24370 | 75 fi |
Hans-G?nter@24370 | 76 } |