12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- # Build recipe for librep
- #
- # Copyright 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
- #
- # This recipe is free software, under the terms of the Apache License 2.0
- program=librep
- version=0.92.7
- release=1
- tarname=${program}_${version}.tar.bz2
- # Remote source(s)
- fetch=http://download.tuxfamily.org/librep/$tarname
- description="
- "
- homepage=http://sawfish.wikia.com/wiki/Main_Page
- license=GPLv2
- # Source documentation
- docs="COPYING ChangeLog MAINTAINERS NEWS README TODO"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- srcdir=$TMPDIR/${program}_${version}
- cd "$srcdir"
- ./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}"
- }
|