diff options
Diffstat (limited to 'DEBIAN')
| -rw-r--r-- | DEBIAN/control | 8 | ||||
| -rwxr-xr-x | DEBIAN/postinst | 12 | ||||
| -rwxr-xr-x | DEBIAN/prerm | 11 |
3 files changed, 31 insertions, 0 deletions
diff --git a/DEBIAN/control b/DEBIAN/control new file mode 100644 index 0000000..60eac1e --- /dev/null +++ b/DEBIAN/control @@ -0,0 +1,8 @@ +Package: st +Version: 0.8.2-1 +Provides: x-terminal-emulator +Maintainer: Andrew Guschin <saintruler@gmail.com> +Architecture: amd64 +Section: x11 +Description: Suckless terminal +Depends: libc6, libfontconfig1, libx11-6, libxft2 diff --git a/DEBIAN/postinst b/DEBIAN/postinst new file mode 100755 index 0000000..20b0bbd --- /dev/null +++ b/DEBIAN/postinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +# Install the new alternative. +update-alternatives \ + --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/st 15 \ + --slave /usr/share/man/man1/x-terminal-emulator.1.gz x-terminal-emulator.1.gz /usr/share/man/man1/st.1.gz + + + +exit 0 diff --git a/DEBIAN/prerm b/DEBIAN/prerm new file mode 100755 index 0000000..3e49cca --- /dev/null +++ b/DEBIAN/prerm @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = remove ] || [ "$1" = deconfigure ]; then + update-alternatives --remove x-terminal-emulator /usr/bin/st +fi + + + +exit 0 |