123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- set -e
- program=icewm
- version=1.6.2
- release=1
- pkgcategory=x-apps
- tarname=${program}-${version}.tar.lz
- fetch=https://github.com/ice-wm/icewm/releases/download/${version}/$tarname
- homepage=https://ice-wm.org/
- description="
- IceWM Window Manager.
- IceWM is a window manager for the X Window System. The goal of IceWM
- is speed, simplicity, and not getting in the user's way. It comes with
- a taskbar with pager, global and per-window keybindings and a dynamic
- menu system.
- For more information, visit: $homepage
- "
- license=LGPLv2+
- docs="AUTHORS ChangeLog COPYING NEWS README.md THANKS TODO VERSION doc/*.html icewm.lsm"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --with-docdir=$docsdir \
- --disable-rpath \
- --build="$(cc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
- mkdir -p "${destdir}/usr/share/xsessions" \
- "${destdir}/usr/share/applications"
- cp -p lib/icewm-session.desktop "${destdir}/usr/share/xsessions"
- cp -p lib/icewm.desktop "${destdir}/usr/share/applications"
-
- mkdir -p "${destdir}/etc/X11/xinit"
- cp -p "${worktree}/archive/icewm/xinitrc-icewm" "${destdir}/etc/X11/xinit/"
- chmod 644 "${destdir}/etc/X11/xinit/xinitrc-icewm"
- touch "${destdir}/etc/X11/xinit/.graft-config"
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|