12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- program=twm
- version=1.0.10
- release=3
- outdir="${outdir}/${arch}/xorg/app"
- tarname=${program}-${version}.tar.bz2
- fetch=http://www.x.org/releases/individual/app/$tarname
- description="
- Tab Window Manager for the X Window System.
- Twm is a window manager for the X Window System. It provides titlebars,
- shaped windows, several forms of icon management, user-defined macro
- functions, click-to-type and pointer-driven keyboard focus, and
- user-specified key and pointer button bindings.
- "
- homepage=http://www.x.org
- license="MIT X Consortium"
- docs="COPYING ChangeLog README"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --build="$(cc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- mkdir -p "${destdir}/etc/X11/xinit"
- cp -p "${worktree}/archive/twm/xinitrc-twm" "${destdir}/etc/X11/xinit/"
- chmod 644 "${destdir}/etc/X11/xinit/xinitrc-twm"
- 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}"
- }
|