opentyrian: update to 2.1.20221123, adopt

This commit is contained in:
Aicaya Maro 2023-09-02 00:02:10 -04:00 committed by classabbyamp
parent ed3c9ac319
commit c99c576a89

View File

@ -1,40 +1,45 @@
# Template file for 'opentyrian' # Template file for 'opentyrian'
pkgname=opentyrian pkgname=opentyrian
version=2.1.20130907 version=2.1.20221123
revision=3 revision=1
_dataver=21 build_wrksrc="$pkgname-$version"
create_wrksrc=yes
build_wrksrc=$pkgname-$version
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="pkg-config unzip" hostmakedepends="pkg-config unzip"
makedepends="SDL_net-devel" makedepends="SDL2-devel SDL2_net-devel"
short_desc="OSS port of the DOS shoot-em-up Tyrian" short_desc="OSS port of the DOS shoot-em-up Tyrian"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Aicaya Maro <aicaya@posteo.net>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://github.com/opentyrian/opentyrian" homepage="https://github.com/opentyrian/opentyrian"
distfiles="http://www.camanis.net/${pkgname}/releases/${pkgname}-${version}-src.tar.gz distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz
http://camanis.net/tyrian/tyrian${_dataver}.zip" https://camanis.net/tyrian/tyrian21.zip"
checksum="f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f checksum="e0e8a8b0d61de10a3a65789ace9ea8e8c5d8dc67f3e423d2c852d64da38aeeb9
7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277" 7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277"
replaces="opentyrian-data>=0" replaces="opentyrian-data>=0"
CFLAGS="-Wno-error -fcommon" post_install() {
local _dir="${wrksrc}/tyrian21"
pre_build() { # data files
vsed -i Makefile -e "s;-g0;$CFLAGS;" vmkdir usr/share/games/tyrian
} vcopy ${_dir}/*.dat usr/share/games/tyrian
do_install() { vcopy ${_dir}/*.lvl usr/share/games/tyrian
vbin ${pkgname} vcopy ${_dir}/*.shp usr/share/games/tyrian
vman linux/man/${pkgname}.6 vcopy ${_dir}/*.snd usr/share/games/tyrian
vinstall linux/${pkgname}.desktop 644 usr/share/applications vcopy ${_dir}/demo.* usr/share/games/tyrian
vinstall linux/icons/tyrian-128.png 644 usr/share/pixmaps ${pkgname}.png vcopy ${_dir}/music.mus usr/share/games/tyrian
vmkdir usr/share/${sourcepkg}/data vcopy ${_dir}/tyrend.anm usr/share/games/tyrian
vcopy "${wrksrc}/tyrian${_dataver}/*" usr/share/${sourcepkg}/data vcopy ${_dir}/tshp2.pcx usr/share/games/tyrian
cat <<EOT > manual.txt vcopy ${_dir}/tyrian.cdt usr/share/games/tyrian
******** This is the original manual of the DOS game. The install vcopy ${_dir}/tyrian.hdt usr/share/games/tyrian
instructions are obsolete, while the story and gameplay instructions vcopy ${_dir}/tyrian.pic usr/share/games/tyrian
starting in section "V) THE STORY" may still be useful. ********
EOT # manual
sed 's/\r//' ${wrksrc}/tyrian${_dataver}/manual.doc >> manual.txt cat <<- EOF > manual.txt
******** This is the original manual of the DOS game. The install
instructions are obsolete, while the story and gameplay instructions
starting in section "V) THE STORY" may still be useful. ********
EOF
tr -d '\r' < "${_dir}/manual.doc" >> manual.txt
vdoc manual.txt vdoc manual.txt
} }