You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit desktop gnome2-utils
|
|
|
|
DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
|
|
HOMEPAGE="https://bitbucket.org/opentyrian/opentyrian/wiki/Home"
|
|
SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
|
|
http://www.camanis.net/${PN}/releases/${P}-src.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="media-libs/libsdl
|
|
media-libs/sdl-net"
|
|
|
|
# Yes, mercurial is needed to set the build version stamp.
|
|
DEPEND="${RDEPEND}
|
|
app-arch/unzip
|
|
dev-vcs/mercurial"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PV}-datapath.diff"
|
|
"${FILESDIR}/${PV}-cflag-idiocy.diff"
|
|
)
|
|
|
|
src_compile() {
|
|
emake DATA_PATH="/usr/share/${PN}"
|
|
}
|
|
|
|
src_install() {
|
|
dobin opentyrian
|
|
dosym ../../usr/bin/opentyrian /usr/bin/tyrian
|
|
dodoc CREDITS NEWS README
|
|
domenu linux/opentyrian.desktop || die "Failed to install desktop file"
|
|
for i in linux/icons/*.png ; do
|
|
local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'`
|
|
insinto /usr/share/icons/hicolor/${size}x${size}/apps
|
|
newins ${i} opentyrian.png
|
|
done
|
|
insinto "/usr/share/${PN}"
|
|
cd "${WORKDIR}/tyrian21"
|
|
rm *.exe dpmi16bi.ovl loudness.awe || die "Failed to remove win32 binaries"
|
|
doins *
|
|
}
|
|
|
|
pkg_postinst() {
|
|
gnome2_icon_cache_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
gnome2_icon_cache_update
|
|
}
|