1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="You control a psychic bodyguard, and try to protect the VIP"
8 HOMEPAGE="http://www.wolfire.com/blackshades.html
9 http://www.icculus.org/blackshades/"
10 SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2
11 mirror://gentoo/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
30 "${FILESDIR}"/${PN}-datadir.patch
36 rm -rf Data/Textures || die
37 rm -f ../Textures/{,Blood/}._* || die
38 mv -f ../Textures Data || die "mv failed"
40 -e "s/-O2 \(-Wall\) -g/${CXXFLAGS} \1/" \
41 -e "/^LINKER/s:$: ${LDFLAGS}:" \
43 || die "sed Makefile failed"
44 sed -i "s:@DATADIR@:/usr/share/${PN}:" \
46 || die "sed Main.cpp failed"
55 newbin objs/blackshades ${PN}
56 insinto /usr/share/${PN}
58 dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme
59 make_desktop_entry ${PN} "Black Shades"