wok view blackbox/receipt @ rev 25652
Up ntfs-3g (2022.10.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 06 11:59:08 2024 +0000 (9 months ago) |
parents | 6f7c7009cd62 |
children |
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
25 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # patch -p1 < $stuff/blackbox-0.70.1-gcc-4.3.patch
32 # patch -p0 < $stuff/blackbox-0.70.1-asneeded.patch
33 # patch -p1 < $stuff/textpropertytostring-unconditional.patch
35 ./autogen.sh &&
36 ./configure \
37 CC=gcc-83 \
38 CXX=g++-83 \
39 --sysconfdir=/etc \
40 --libexecdir=/usr/bin \
41 --mandir=/usr/share/man \
42 $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/share/blackbox $fs/usr/share
55 # menu suitable for SliTaz
56 cp -a $stuff/menu $fs/usr/share/blackbox
57 }
59 post_install()
60 {
61 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
62 # Add window manager to SLIM available sessions.
63 if ! echo "$res" | grep -q $PACKAGE
64 then
65 sed -i "s|^sessions.*|sessions ${res},$PACKAGE|" \
66 "$1/etc/slim.conf"
67 fi
68 }
70 post_remove()
71 {
72 # Remove window manager from SLIM available sessions.
73 if grep -q $PACKAGE "$1/etc/slim.conf"
74 then
75 sed -i "s|,$PACKAGE||" "$1/etc/slim.conf"
76 fi
77 }