forked from hasufell/hasufell-repository
games-strategy/ja2-stracciatella: initial import of version 0.14.01
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Convert names of data-files to lower-case
|
||||
|
||||
# location of the data-files
|
||||
GAMES_DATADIR="/usr/share/ja2/data"
|
||||
|
||||
cd "${GAMES_DATADIR}" || exit 1
|
||||
|
||||
# convert to lowercase
|
||||
find . -exec sh -c 'echo "${1}"
|
||||
lower="`echo "${1}" | tr [:upper:] [:lower:]`"
|
||||
[ -d `dirname "${lower}"` ] || mkdir `dirname ${lower}`
|
||||
[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
|
||||
|
||||
# remove leftover
|
||||
rm -r ./TILECACHE ./STSOUNDS
|
||||
@@ -0,0 +1,18 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 27ef953..cc1e2cd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -610,11 +610,11 @@ install: $(BINARY)
|
||||
test -z "$(INSTALLABLE)" || install -d $(BINARY_DIR)
|
||||
test -z "$(INSTALLABLE)" || install -d $(MANPAGE_DIR)
|
||||
test -z "$(INSTALLABLE)" || install -d $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
- test -z "$(INSTALLABLE)" || install -m 555 $(BINARY) $(BINARY_DIR)
|
||||
+ test -z "$(INSTALLABLE)" || install -m 755 $(BINARY) $(BINARY_DIR)
|
||||
test -z "$(INSTALLABLE)" || cp -r externalized $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
test -z "$(INSTALLABLE)" || cp -r mods $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
test -z "$(INSTALLABLE)" || cp -r _unittests $(FULL_PATH_EXTRA_DATA_DIR)
|
||||
- test -z "$(INSTALLABLE)" || install -m 444 ja2_manpage $(MANPAGE_DIR)/ja2.6
|
||||
+ test -z "$(INSTALLABLE)" || install -m 644 ja2_manpage $(MANPAGE_DIR)/ja2.6
|
||||
|
||||
@test -n "$(INSTALLABLE)" || echo "------------------------------------------------------------------------------"
|
||||
@test -n "$(INSTALLABLE)" || echo "This build doesn't support installation."
|
||||
@@ -0,0 +1,67 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
SUMMARY="A port of Jagged Alliance 2 to SDL"
|
||||
HOMEPAGE="https://bitbucket.org/gennady/ja2-stracciatella http://tron.homeunix.org/ja2/"
|
||||
DOWNLOADS="https://bitbucket.org/gennady/ja2-stracciatella/get/v${PV}.tar.gz -> ${PNV}.tar.gz
|
||||
mirror://gentoo/editor.slf.gz"
|
||||
|
||||
LICENCES="SFI-SCLA"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
media-libs/SDL:0[X]
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
edo mv gennady-ja2-stracciatella-* ${PNV}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
expatch "${FILES}"/${PNV}-makefile.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# not an autoconf script
|
||||
./configure --prefix=/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake Q=""
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
BINARY_DIR="${IMAGE}/usr/$(exhost --target)/bin" \
|
||||
MANPAGE_DIR="${IMAGE}/usr/share/man/man6" \
|
||||
FULL_PATH_EXTRA_DATA_DIR="${IMAGE}/usr/share/ja2" \
|
||||
install
|
||||
|
||||
insinto /usr/share/ja2/data
|
||||
doins "${WORKBASE}"/editor.slf
|
||||
|
||||
insinto /usr/share/applications
|
||||
hereins ${PN}.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=ja2-stracciatella
|
||||
Type=Application
|
||||
Comment=A port of Jagged Alliance 2 to SDL
|
||||
Exec=ja2
|
||||
TryExec=ja2
|
||||
Icon=ja2-stracciatella
|
||||
Categories=Game;StrategyGame;
|
||||
EOF
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You need to copy all files from the Data directory of"
|
||||
elog "Jagged Alliance 2 installation to"
|
||||
elog "/usr/share/ja2/data "
|
||||
elog "Make sure the filenames are lowercase. You may want to run the"
|
||||
elog "script"
|
||||
elog "/usr/bin/ja2-convert"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user