2016-04-13 11:58:36 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.fefe.de/fortune/
|
2017-01-31 17:24:32 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Revealer of fortunes"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="Public Domain"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2016-04-13 11:58:36 +02:00
|
|
|
TERMUX_PKG_VERSION=1.2
|
2019-03-10 20:30:56 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2016-04-13 11:58:36 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://dl.fefe.de/fortune-${TERMUX_PKG_VERSION}.tar.bz2
|
2017-03-27 01:56:11 +02:00
|
|
|
TERMUX_PKG_SHA256=cbb246a500366db39ce035632eb4954e09f1e03b28f2c4688864bfa8661b236a
|
2016-04-13 11:58:36 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2016-04-13 11:58:36 +02:00
|
|
|
cd $TERMUX_PKG_SRCDIR
|
2019-03-10 20:30:56 +01:00
|
|
|
$CC $CFLAGS $LDFLAGS fortune.c -o $TERMUX_PREFIX/bin/fortune
|
2016-04-13 11:58:36 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/man/man6
|
|
|
|
cp debian/fortune.6 $TERMUX_PREFIX/share/man/man6/
|
|
|
|
|
|
|
|
local TARFILE=$TERMUX_PKG_CACHEDIR/f.tar.gz
|
2018-07-23 14:13:33 +02:00
|
|
|
termux_download \
|
|
|
|
http://http.debian.net/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz \
|
|
|
|
$TARFILE \
|
|
|
|
fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
|
|
|
|
|
2016-04-13 11:58:36 +02:00
|
|
|
cd $TERMUX_PKG_TMPDIR
|
|
|
|
mkdir datfiles
|
|
|
|
cd datfiles
|
2018-07-23 14:13:33 +02:00
|
|
|
|
2016-04-13 11:58:36 +02:00
|
|
|
tar xf $TARFILE
|
|
|
|
cd fortune-mod-1.99.1/datfiles
|
2018-07-23 14:13:33 +02:00
|
|
|
|
2016-04-13 11:58:36 +02:00
|
|
|
rm -Rf html off Makefile
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/games/fortunes
|
|
|
|
cp * $TERMUX_PREFIX/share/games/fortunes
|
|
|
|
}
|