Last "drop cp -a patch" commit

While here, move one hardcoded /sur/local to ${TRUEPREFIX}.
ok phessler@ (maintainer)
This commit is contained in:
jca 2019-05-07 20:32:32 +00:00
parent 0e37424fcf
commit 712514e6fd
2 changed files with 7 additions and 6 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2017/05/11 20:50:55 espie Exp $
# $OpenBSD: Makefile,v 1.6 2019/05/07 20:32:32 jca Exp $
COMMENT = dungeon-crawling action-RPG adventure
DISTNAME = egoboo-2.7.4
REVISION = 0
CATEGORIES = games
MAINTAINER = Peter Hessler <phessler@openbsd.org>
@ -27,7 +28,6 @@ EGOBOO_SHARED = ${PREFIX}/share/egoboo
pre-configure:
@${SUBST_CMD} ${WRKSRC}/egoboo.sh
@perl -pi -e 's,cp -a,cp, -RP,' ${WRKSRC}/egoboo.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/egoboo ${PREFIX}/libexec/

View File

@ -1,11 +1,12 @@
$OpenBSD: patch-game_egoboo_sh,v 1.1.1.1 2009/10/11 14:01:39 phessler Exp $
--- game/egoboo.sh.orig Sat Apr 25 10:32:14 2009
+++ game/egoboo.sh Sun Oct 11 15:34:16 2009
$OpenBSD: patch-game_egoboo_sh,v 1.2 2019/05/07 20:32:32 jca Exp $
Index: game/egoboo.sh
--- game/egoboo.sh.orig
+++ game/egoboo.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-EGOBOO_PREFIX=${HOME}/.local
+EGOBOO_PREFIX="/usr/local"
+EGOBOO_PREFIX="${TRUEPREFIX}"
EGOBOO_SHARED="${EGOBOO_PREFIX}/share/egoboo"
# exit on any error