From 3844ce47ea23ccd76d9be5af2b9bd1c0f173a7e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= Date: Wed, 14 Jan 2015 21:09:21 +0100 Subject: [PATCH] New package: run-mailcap-3.58_1 --- srcpkgs/run-mailcap/patches/manpage.patch | 25 ++++++++++++++++++ srcpkgs/run-mailcap/template | 31 +++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 srcpkgs/run-mailcap/patches/manpage.patch create mode 100644 srcpkgs/run-mailcap/template diff --git a/srcpkgs/run-mailcap/patches/manpage.patch b/srcpkgs/run-mailcap/patches/manpage.patch new file mode 100644 index 00000000000..7fc9e0567d9 --- /dev/null +++ b/srcpkgs/run-mailcap/patches/manpage.patch @@ -0,0 +1,25 @@ +Remove mention of the "view" alias from the manpage. +It won't be installed as it would conflict with vi packages. + +Remove mention of the "update-mime" tool from the manpage. +It won't be installed as it is specific to Debian packages. + +--- run-mailcap.man.orig 2014-12-28 07:06:43.000000000 +0100 ++++ run-mailcap.man 2015-01-14 20:40:31.550692133 +0100 +@@ -4,7 +4,7 @@ + .\" + .TH RUN-MAILCAP 1 "1st Jan 2008" "Debian Project" "Run Mailcap Programs" + .SH NAME +-run-mailcap, view, see, edit, compose, print \- execute programs via entries in the ++run-mailcap, see, edit, compose, print \- execute programs via entries in the + .I mailcap + file + .SH SYNOPSIS +@@ -81,7 +81,6 @@ + Displays the found command without actually executing it. + .SH "SEE ALSO" + .BR file "(1)" +-.BR update-mime "(8)" + .SH AUTHOR + .B run-mailcap + (and its aliases) was written by Brian White . diff --git a/srcpkgs/run-mailcap/template b/srcpkgs/run-mailcap/template new file mode 100644 index 00000000000..7284e4babda --- /dev/null +++ b/srcpkgs/run-mailcap/template @@ -0,0 +1,31 @@ +# Template file for 'run-mailcap' +pkgname="run-mailcap" +version="3.58" +revision=1 +_ubuntu_revision=1 +update_version="${version}ubuntu${_ubuntu_revision}" +_aliases="see edit compose print" +short_desc="Execute programs via entries in the mailcap file" +maintainer="Stefan Mühlinghaus " +license="Public Domain" +homepage="http://packages.ubuntu.com/vivid/mime-support" +distfiles="http://archive.ubuntu.com/ubuntu/pool/main/m/mime-support/mime-support_${update_version}.tar.gz" +checksum="359014c892432870e43b153287391d1212efd7b8ed8571508a65b6aa0488a17d" +wrksrc="mime-support-${update_version}" +update_pkgname="mime-support" +noarch=1 +depends="perl" + +do_install() { + vbin run-mailcap + vman run-mailcap.man run-mailcap.1 + cd ${DESTDIR}/usr/bin + for a in ${_aliases}; do + ln -sf run-mailcap ${a} + done + cd ${DESTDIR}/usr/share/man/man1 + for a in ${_aliases}; do + ln -sf run-mailcap.1 ${a}.1 + done +} +