1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- set -e
- program=oclock
- version=1.0.4
- release=2
- pkgcategory=xorg_app
- tarname=${program}-${version}.tar.bz2
- fetch=https://www.x.org/releases/individual/app/$tarname
- description="
- Round X clock.
- oclock(1) simply displays the current time on an analog display.
- "
- homepage=https://www.x.org
- license="MIT X Consortium"
- docs="COPYING ChangeLog README"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --mandir=$mandir \
- --docdir=$docsdir \
- --with-appdefaultdir=/etc/X11/app-defaults \
- || true
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
- touch "${destdir}/etc/X11/app-defaults/.graft-config"
-
- if test -d "${destdir}/$infodir"
- then
- rm -f "${destdir}/${infodir}/dir"
- lzip -9 "${destdir}/${infodir}"/*
- fi
-
- 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"
- }
|