1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- set -e
- program=bc
- version=5.2.1
- release=1
- pkgcategory=devel
- tarname=${program}-${version}.tar.xz
- fetch=https://github.com/gavinhoward/bc/releases/download/${version}/$tarname
- description="
- An arbitrary precision numeric processing language.
- Bc is an arbitrary precision numeric processing language. Syntax is
- similar to C, but differs in many substantial areas. It supports
- interactive execution of statements.
- This is the version of bc maintained by Gavid D. Howard.
- "
- homepage=https://github.com/gavinhoward/bc
- license="BSD, Custom"
- docs="LICENSE.md NEWS.md NOTICE.md README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- env CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS -O3" \
- LDFLAGS="$QILDFLAGS -static" \
- sh ./configure.sh \
- --prefix=/usr \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --disable-generated-tests \
- --disable-strip
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- 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"
- }
|