void-packages/srcpkgs/cowsay/template

24 lines
666 B
Bash

# Template file for 'cowsay'
pkgname=cowsay
version=3.04
revision=3
depends="perl"
short_desc="Configurable speaking/thinking cow (and a bit more)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tnalpgge/rank-amateur-cowsay"
distfiles="https://github.com/tnalpgge/rank-amateur-cowsay/archive/${pkgname}-${version}.tar.gz"
checksum=d8b871332cfc1f0b6c16832ecca413ca0ac14d58626491a6733829e3d655878b
post_extract() {
sed -i -e 's,%BANGPERL%,!/usr/bin/perl,g' -e 's,%PREFIX%,/usr,g' \
cowsay cowsay.1
}
do_install() {
vbin cowsay
ln -s cowsay ${DESTDIR}/usr/bin/cowthink
vman cowsay.1
vcopy cows usr/share
}