termux-packages/packages/fortune/build.sh
Leonid Pliushch 37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00

33 lines
1.0 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.fefe.de/fortune/
TERMUX_PKG_DESCRIPTION="Revealer of fortunes"
TERMUX_PKG_LICENSE="Public Domain"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://dl.fefe.de/fortune-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=cbb246a500366db39ce035632eb4954e09f1e03b28f2c4688864bfa8661b236a
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
$CC $CFLAGS $LDFLAGS fortune.c -o $TERMUX_PREFIX/bin/fortune
mkdir -p $TERMUX_PREFIX/share/man/man6
cp debian/fortune.6 $TERMUX_PREFIX/share/man/man6/
local TARFILE=$TERMUX_PKG_CACHEDIR/f.tar.gz
termux_download \
http://http.debian.net/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz \
$TARFILE \
fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
cd $TERMUX_PKG_TMPDIR
mkdir datfiles
cd datfiles
tar xf $TARFILE
cd fortune-mod-1.99.1/datfiles
rm -Rf html off Makefile
mkdir -p $TERMUX_PREFIX/share/games/fortunes
cp * $TERMUX_PREFIX/share/games/fortunes
}