void-packages/srcpkgs/run-mailcap/template
2021-10-29 15:54:53 +02:00

29 lines
839 B
Bash

# Template file for 'run-mailcap'
pkgname=run-mailcap
version=3.68
revision=1
wrksrc="mailcap-${version}ubuntu1"
depends="perl"
short_desc="Execute programs via entries in the mailcap file"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
license="custom:ad-hoc, custom:Bellcore"
homepage="https://packages.ubuntu.com/hirsute/mailcap"
distfiles="${UBUNTU_SITE}/main/m/mailcap/mailcap_${version}ubuntu1.tar.xz"
checksum=d5567fef2d81ecdc6b98f7a5a052375cbff000b2255567abe261c0b8371444f0
do_install() {
local _aliases="see edit compose print"
vbin run-mailcap
vman run-mailcap.man run-mailcap.1
vman mailcap.man mailcap.1
vlicense debian/copyright
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
}