void-packages/srcpkgs/ponysay/template
Peter Bui 6ec07d631e ponysay: make sure we use python3
It requires python3, but uses `/usr/bin/env python` in the she-bang,
which is ambiguous.  Setting the environment to `python3` fixes the
current run-time error.
2017-10-26 23:06:25 -04:00

21 lines
633 B
Bash

# Template file for 'ponysay'
pkgname=ponysay
version=3.0.3
revision=2
noarch=yes
hostmakedepends="python3"
depends="python3"
short_desc="Pony rewrite of cowsay"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3"
homepage="http://erkin.github.com/ponysay/"
distfiles="https://github.com/erkin/${pkgname}/archive/${version}.tar.gz"
checksum=c382d7f299fa63667d1a4469e1ffbf10b6813dcd29e861de6be55e56dc52b28a
do_install() {
python3 setup.py --prefix=/usr --dest-dir=$DESTDIR \
--freedom=partial --everything \
--with-pdf=/usr/share/doc/ponysay --without-pdf-compression \
--with-custom-env-python=python3 \
install
}