From 6b8e4081f0e47ed7926598ce86601e3345041458 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 07 May 2014 12:54:18 -0400 Subject: Initial commit. --- (limited to 'dc.pkg') 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 -- cgit v0.9.1