forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opentyrian: update to 2.1.20221123, adopt
- Loading branch information
Showing
1 changed file
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,46 @@ | ||
# Template file for 'opentyrian' | ||
pkgname=opentyrian | ||
version=2.1.20130907 | ||
revision=3 | ||
_dataver=21 | ||
version=2.1.20221123 | ||
revision=1 | ||
create_wrksrc=yes | ||
build_wrksrc=$pkgname-$version | ||
build_wrksrc="$pkgname-$version" | ||
build_style=gnu-makefile | ||
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" | ||
maintainer="Orphaned <[email protected]>" | ||
maintainer="Aicaya Maro <[email protected]>" | ||
license="GPL-2.0-or-later" | ||
homepage="https://github.com/opentyrian/opentyrian" | ||
distfiles="http://www.camanis.net/${pkgname}/releases/${pkgname}-${version}-src.tar.gz | ||
http://camanis.net/tyrian/tyrian${_dataver}.zip" | ||
checksum="f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f | ||
distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz | ||
https://camanis.net/tyrian/tyrian21.zip" | ||
checksum="e0e8a8b0d61de10a3a65789ace9ea8e8c5d8dc67f3e423d2c852d64da38aeeb9 | ||
7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277" | ||
replaces="opentyrian-data>=0" | ||
|
||
CFLAGS="-Wno-error -fcommon" | ||
post_install() { | ||
local _dir="${wrksrc}/tyrian21" | ||
|
||
pre_build() { | ||
vsed -i Makefile -e "s;-g0;$CFLAGS;" | ||
} | ||
do_install() { | ||
vbin ${pkgname} | ||
vman linux/man/${pkgname}.6 | ||
vinstall linux/${pkgname}.desktop 644 usr/share/applications | ||
vinstall linux/icons/tyrian-128.png 644 usr/share/pixmaps ${pkgname}.png | ||
vmkdir usr/share/${sourcepkg}/data | ||
vcopy "${wrksrc}/tyrian${_dataver}/*" usr/share/${sourcepkg}/data | ||
cat <<EOT > 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. ******** | ||
EOT | ||
sed 's/\r//' ${wrksrc}/tyrian${_dataver}/manual.doc >> manual.txt | ||
# data files | ||
vmkdir usr/share/games/tyrian | ||
vcopy "${_dir}/*.dat | ||
${_dir}/*.lvl | ||
${_dir}/*.shp | ||
${_dir}/*.snd | ||
${_dir}/demo.* | ||
${_dir}/music.mus | ||
${_dir}/tyrend.anm | ||
${_dir}/tshp2.pcx | ||
${_dir}/tyrian.cdt | ||
${_dir}/tyrian.hdt | ||
${_dir}/tyrian.pic" usr/share/games/tyrian | ||
|
||
# manual | ||
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 | ||
} |