diff --git a/build/debian/README b/build/debian/README new file mode 100644 index 00000000..5168d794 --- /dev/null +++ b/build/debian/README @@ -0,0 +1,29 @@ +Features +======== + +* Case sensitive command line interface +* Native IEEE 754 with 15 significant digits +* Calculations with real and complex numbers +* Variables and user defined functions +* Logarithmic and exponential functions +* Trigonometric and hyperbolic functions +* Mathematical constants and rounding functions +* Disk functions to load, save and view content +* Comprehensive and easy to use built-in help +* Full multi-lingual locale support +* Freely distributable sources + +Example of usage +================ + +Get an interactive prompt in shell: +> amath + +Do a calculation in shell: +> amath 1.2+1.4 + +Show version string: +> amath version + +Run regression tests: +> amath test diff --git a/build/debian/control b/build/debian/control new file mode 100644 index 00000000..a1b4108c --- /dev/null +++ b/build/debian/control @@ -0,0 +1,17 @@ +Package: amath +Version: 1.6.2 +Architecture: i386 +Maintainer: Carsten Larsen +Installed-Size: 265640 +Depends: libc6 +Section: math +Essential: no +Priority: optional +Homepage: http://amath.innolan.net +Built-Using: gcc-5.4 +Description: Simple command line calculator + Features a case sensitive command line interface, internal IEEE 754 + calculations with 15 significant digits, calculations with real and + complex numbers, variables and user defined functions, logarithmic + and exponential functions, trigonometric and hyperbolic function + and selected mathematical constants and rounding functions. diff --git a/builddeb.sh b/builddeb.sh new file mode 100755 index 00000000..4cbe05f8 --- /dev/null +++ b/builddeb.sh @@ -0,0 +1,38 @@ +#! /bin/sh + +# Build a debian package for i386 + +rm -Rf amath + +# Build +sh configure +make clean +make +mv amath amath.tmp +make clean + +# Create filesystem layout +rm -Rf amath + +mkdir -p amath/DEBIAN +mkdir -p amath/usr/bin +mkdir -p amath/usr/share/doc/amath +mkdir -p amath/usr/local/share/amath + +mv amath.tmp amath/usr/bin/amath + +# Copy documentation +cp LICENSE amath/usr/share/doc/amath/ +cp HISTORY amath/usr/share/doc/amath/ +cp build/debian/README amath/usr/share/doc/amath/ + +# Copy scripts +cp script/* amath/usr/local/share/amath/ + +# Make the package +cp build/debian/control amath/DEBIAN/ +dpkg-deb --build amath +mv amath.deb amath-1.6.2_i386.deb + +# Cleanup +rm -Rf amath