diff options
Diffstat (limited to 'utilities/bc/bc.build')
-rwxr-xr-x | utilities/bc/bc.build | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/utilities/bc/bc.build b/utilities/bc/bc.build new file mode 100755 index 0000000..5cb25ad --- /dev/null +++ b/utilities/bc/bc.build @@ -0,0 +1,75 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=bc +VERSION=1.06.95 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: GNU bc (An arbitrary precision calculator language) +${NAME}: +${NAME}: bc is an arbitrary precision numeric processing language. Syntax is +${NAME}: similar to C, but differs in many substantial areas. It supports +${NAME}: interactive execution of statements. bc is a utility included in the +${NAME}: POSIX P1003.2/D11 draft standard. +${NAME}: +${NAME}: The GNU version of bc was written by Philip A. Nelson. +${NAME}: +${NAME}: +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +install_info() +{ + for file in "\${*}"; do + if [ -x usr/bin/install-info ]; then + usr/bin/install-info --info-dir=usr/share/info usr/share/info/\${file}.info.xz 2> /dev/null + fi + done +} + +# Install texinfo files + +install_info bc dc +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${VERSION} +SRCPACK[0]=${URL[gnu]}/${SRCNAME[0]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2 +SRCCOPY[0]="GPL2 LGPL21" + +build0() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --with-readline +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS FAQ +changelog NEWS +} |