123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- set -e
- program=which
- version=2.21
- release=1
- pkgcategory=tools
- tarname=${program}-${version}.tar.gz
- fetch=https://ftp.gnu.org/gnu/which/$tarname
- description="
- Shows the full path of (shell) commands.
- Which is a utility that prints out the full path of the executables
- that the shell would execute when the passed program names would have
- been entered on the shell prompt.
- "
- homepage=https://www.gnu.org/software/which
- license=GPLv3+
- docs="AUTHORS COPYING EXAMPLES NEWS README README.alias"
- 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 -static" \
- $configure_args \
- --infodir=$infodir \
- --mandir=$mandir \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- rm -f "${destdir}/${infodir}/dir"
- lzip -9 "${destdir}/${infodir}/which.info" \
- "${destdir}/${mandir}/man1/which.1"
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|