void-packages/srcpkgs/cowsay/template
2016-06-26 18:36:13 +02:00

25 lines
731 B
Bash

# Template file for 'cowsay'
pkgname=cowsay
version=3.04
revision=1
wrksrc="rank-amateur-cowsay-${pkgname}-${version}"
depends="perl"
short_desc="Configurable speaking/thinking cow (and a bit more)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="https://github.com/tnalpgge/rank-amateur-cowsay"
distfiles="https://github.com/tnalpgge/rank-amateur-cowsay/archive/${pkgname}-${version}.tar.gz"
checksum=d8b871332cfc1f0b6c16832ecca413ca0ac14d58626491a6733829e3d655878b
noarch=yes
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
}