1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- # Build recipe for sawfish
- #
- # Copyright 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
- #
- # This recipe is free software, under the terms of the Apache License 2.0
- program=sawfish
- version=1.12.90
- release=1
- tarname=${program}_${version}.tar.bz2
- # Remote source(s)
- fetch=http://download.tuxfamily.org/sawfish/$tarname
- description="
- Sawfish is an extensible window manager using a Lisp-based scripting
- language. Its policy is very minimal compared to most window managers. Its aim
- is simply to manage windows in the most flexible and attractive manner
- possible. All high-level WM functions are implemented in Lisp for future
- extensibility or redefinition.
- "
- homepage=http://sawfish.wikia.com/wiki/Main_Page
- license=GPLv2
- # Source documentation
- docs="AUTHORS CONTRIBUTING COPYING* ChangeLog DOC MAINTAINERS README* TODO"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- srcdir=$TMPDIR/${program}_${version}
- cd "$srcdir"
- ./autogen.sh
- ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --mandir=$mandir \
- --docdir=$docdir \
- --build="$(cc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
- # Compress info documents deleting index file for the package
- if test -d "${destdir}/$infodir"
- then
- rm -f "${destdir}/${infodir}/dir"
- lzip -9 "${destdir}/${infodir}"/*
- fi
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|