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