bsd-games: switch to building from latest release archive
And address (some of) maintainer @msharov's feedback.
This commit is contained in:
parent
f20fb9c1b2
commit
08f6a1b482
|
@ -11,12 +11,3 @@
|
|||
|
||||
################ Destination #########################################
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
datadir := @datadir@
|
||||
mandir := @mandir@
|
||||
man6dir := @man6dir@
|
||||
-scoredir := @localstatedir@/${name}
|
||||
+scoredir := @prefix@@localstatedir@/${name}
|
||||
TMPDIR := @TMPDIR@
|
||||
builddir := @builddir@/${name}
|
||||
O := .o/
|
||||
|
|
|
@ -3,22 +3,10 @@ TERMUX_PKG_DESCRIPTION="Classic text mode games from UNIX folklore"
|
|||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||
TERMUX_PKG_LICENSE_FILE="LICENSE, adventure/LICENSE, atc/LICENSE, battlestar/LICENSE, caesar/LICENSE, dab/LICENSE, drop4/LICENSE, gofish/LICENSE, gomoku/LICENSE, hangman/LICENSE, robots/LICENSE, sail/LICENSE, snake/LICENSE, spirhunt/LICENSE, worm/LICENSE, wump/LICENSE"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
_COMMIT=511ca9eb1fe71d3ab1948c0e3b61336150ff389e
|
||||
TERMUX_PKG_VERSION=2021.11.15
|
||||
TERMUX_PKG_SRCURL=https://github.com/msharov/bsd-games.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_VERSION=1:3.2
|
||||
TERMUX_PKG_SRCURL=https://github.com/msharov/bsd-games/archive/refs/tags/v${TERMUX_PKG_VERSION:2}.tar.gz
|
||||
TERMUX_PKG_SHA256=41a3aecbf35afff4ba1ff2af9dab7dc25dddf5e722ece6ea58b992e6bd53386e
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_GROUPS="games"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git fetch --unshallow
|
||||
git checkout $_COMMIT
|
||||
|
||||
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
|
||||
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
|
||||
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
|
||||
echo " is different from what is expected to be: \"$version\""
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--localstatedir=$TERMUX_PREFIX/games"
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- a/config.h.in
|
||||
+++ b/config.h.in
|
||||
@@ -11,7 +11,7 @@
|
||||
#define @pkg_uname@_BUGREPORT "@pkg_bugreport@"
|
||||
|
||||
// Path to runtime game state, such as scorefiles
|
||||
-#define _PATH_GAME_STATE "@localstatedir@/@pkg_name@/"
|
||||
+#define _PATH_GAME_STATE "@prefix@@localstatedir@/@pkg_name@/"
|
||||
|
||||
// Path to the system dictionary
|
||||
#define _PATH_WORDLIST "@wordlist@"
|
Loading…
Reference in New Issue