1 # Build recipe for icewm.
3 # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
4 # Copyright (c) 2018-2019 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/x-apps"
25 tarname=${program}-${version}.tar.bz2
28 fetch=http://github.com/bbidulock/icewm/releases/download/${version}/$tarname
30 homepage=http://ice-wm.org/
35 IceWM is a window manager for the X Window System. The goal of IceWM
36 is speed, simplicity, and not getting in the user's way. It comes with
37 a taskbar with pager, global and per-window keybindings and a dynamic
40 For more information, visit: $homepage
45 # Source documentation
46 docs="AUTHORS ChangeLog COPYING NEWS README.md THANKS TODO VERSION doc/*.html icewm.lsm"
47 docsdir="${docdir}/${program}-${version}"
53 unpack "${tardir}/$tarname"
57 patch -Np0 -i ${worktree}/patches/icewm/fix-strlcat_strlcpy.patch
58 patch -Np0 -i ${worktree}/patches/icewm/musl.patch
60 # Note: IceWM has sound support for GUI events, this requires the
61 # libsndfile dependency, and also has been marked as experimental;
62 # we turn it to OFF by default.
64 ./configure CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" \
65 LDFLAGS="$QILDFLAGS" \
67 --libdir=/usr/lib${libSuffix} \
72 --enable-shaped-decorations \
75 --disable-menus-gnome2 \
77 --build="$(cc -dumpmachine)"
80 make -j${jobs} DESTDIR="$destdir" install
82 # Include xinitrc file to start ICEWM
84 mkdir -p "${destdir}/etc/X11/xinit"
85 cp -p "${worktree}/archive/icewm/xinitrc-icewm" "${destdir}/etc/X11/xinit/"
86 chmod 644 "${destdir}/etc/X11/xinit/xinitrc-icewm"
88 touch "${destdir}/etc/X11/xinit/.graft-config"
90 # Compress and link man pages (if needed)
91 if test -d "${destdir}/$mandir"
94 cd "${destdir}/$mandir"
95 find . -type f -exec lzip -9 '{}' +
96 find . -type l | while read -r file
98 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
105 mkdir -p "${destdir}${docsdir}"
106 cp -p $docs "${destdir}${docsdir}/"