diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-05-07 12:54:18 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-05-07 12:54:18 (EDT) |
commit | 6b8e4081f0e47ed7926598ce86601e3345041458 (patch) | |
tree | 4086db51ca3ab964565c86987b5f4386d6afa1c4 /dc.pkg |
Initial commit.
Diffstat (limited to 'dc.pkg')
-rw-r--r-- | dc.pkg/control | 10 | ||||
-rw-r--r-- | dc.pkg/files | 1 | ||||
-rw-r--r-- | dc.pkg/postinst | 5 | ||||
-rw-r--r-- | dc.pkg/prerm | 5 |
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 |