wok-next view jwm/receipt @ rev 21488
updated apache (2.4.28 -> 2.4.43)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 16:38:11 2020 +0100 (2020-06-18) |
parents | 5669e8b3be70 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="jwm"
4 VERSION="2.3.7"
5 CATEGORY="x-window"
6 SHORT_DESC="A lightweight window manager for the X11 Window System"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://joewing.net/projects/jwm/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="http://joewing.net/projects/jwm/releases/$TARBALL"
14 BUILD_DEPENDS="libx11-dev libpng-dev libjpeg-turbo-dev cairo-dev \
15 librsvg-dev freetype-dev libxft-dev libxrender-dev fribidi-dev \
16 libxpm-dev libxmu-dev gettext libxinerama-dev \
17 libxslt libxml2-tools"
19 compile_rules() {
20 sed -i '/^ICONS/ s|$| jwm-red.svg|' contrib/Makefile.in
22 ./configure \
23 --sysconfdir=/etc/xdg/jwm \
24 --disable-rpath \
25 $CONFIGURE_ARGS &&
26 make &&
27 make install || return 1
29 # Store original author settings
30 mv $install/etc/xdg/jwm/system.jwmrc $install/etc/xdg/jwm/original.jwmrc
32 # Convert 2.2 to 2.3 settings, pretty-print and install them
33 export XMLLINT_INDENT=$'\t'
34 for i in simple slitaz; do
35 xsltproc xslt/jwm-2.3.xslt $stuff/$i.jwmrc \
36 | sed 's|^[ \t]||g' \
37 | xmllint --format - \
38 > $install/etc/xdg/jwm/${i/slitaz/system}.jwmrc
39 done
41 # Autostart
42 install -Dm644 $stuff/xsessions/jwm.desktop $install/usr/share/xsessions/jwm.desktop
43 }
45 testsuite() {
46 readelf -h $install/usr/bin/jwm
47 }
49 genpkg_rules() {
50 copy @std
51 DEPENDS="libcairo fribidi glib libjpeg-turbo libpng librsvg libx11 \
52 libxext libxft libxinerama libxmu libxpm \
53 libxrender slitaz-configs-base xload xclock imlib2 \
54 hsetroot compton nano"
55 TAGS="window-manager"
56 }
58 # Adding WM to SLiM available sessions.
59 post_install() {
60 post_remove
61 sed -i '/^sessions/ s|$|,jwm|' "$1/etc/slim.conf"
62 }
64 # Remove WM from SLiM available sessions.
65 post_remove() {
66 sed -i '/^sessions/ s|,jwm||' "$1/etc/slim.conf"
67 }