summaryrefslogtreecommitdiffstats
path: root/dc.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'dc.pkg')
-rw-r--r--dc.pkg/control10
-rw-r--r--dc.pkg/files1
-rw-r--r--dc.pkg/postinst5
-rw-r--r--dc.pkg/prerm5
4 files changed, 21 insertions, 0 deletions
diff --git a/dc.pkg/control b/dc.pkg/control
new file mode 100644
index 0000000..3a34b7a
--- /dev/null
+++ b/dc.pkg/control
@@ -0,0 +1,10 @@
+Architecture: any
+Platform: all
+Depends: bc-common (= ${Binary-Version})
+Description: Arbitrary precision calculator
+ GNU dc is a reverse-polish desk calculator which supports unlimited precision
+ arithmetic. It also allows you to define and call macros.
+ .
+ A reverse-polish calculator stores numbers on a stack. Entering a number
+ pushes it on the stack. Arithmetic operations pop arguments off the stack and
+ push the results.
diff --git a/dc.pkg/files b/dc.pkg/files
new file mode 100644
index 0000000..020af8c
--- /dev/null
+++ b/dc.pkg/files
@@ -0,0 +1 @@
+/usr/bin/dc.gnu
diff --git a/dc.pkg/postinst b/dc.pkg/postinst
new file mode 100644
index 0000000..8ca83d2
--- /dev/null
+++ b/dc.pkg/postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ update-alternatives --install /usr/bin/dc dc /usr/bin/dc.gnu 20
+fi
diff --git a/dc.pkg/prerm b/dc.pkg/prerm
new file mode 100644
index 0000000..688f2b8
--- /dev/null
+++ b/dc.pkg/prerm
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xremove' ]; then
+ update-alternatives --remove dc /usr/bin/dc.gnu
+fi