1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- set -e
- program=libedit
- version=20221030-3.1
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://thrysoee.dk/editline/$tarname
- description="
- A command line editor library.
- This is a port of the NetBSD Editline library (libedit).
- This Berkeley-style licensed command line editor library
- provides generic line editing, history, and tokenization
- functions, similar to those found in GNU Readline.
- "
- homepage=https://thrysoee.dk/editline
- license=BSD
- docs="COPYING ChangeLog THANKS"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
- ./configure CPPFLAGS="$QICPPFLAGS" \
- CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --enable-static \
- --enable-shared \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- rm -f "${destdir}/${mandir}/man3/history.3"
-
- if [ -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"
- }
|