Magellan Linux

Contents of /trunk/todo/viruskiller/viruskiller-1.0-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2623 - (show annotations) (download)
Thu Jul 9 20:40:25 2009 UTC (14 years, 10 months ago) by niro
File size: 1883 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/viruskiller/viruskiller-1.0-r4.smage2,v 1.2 2008/02/07 14:23:54 niro Exp $
2
3 PNAME="viruskiller"
4 PVER="1.0"
5 PBUILD="r4"
6
7 PCATEGORIE="x11-games"
8 STATE="testing"
9
10 DESCRIPTION="Simple arcade game, shoot'em up style, where you must defend your file system from invading viruses."
11 HOMEPAGE="http://www.parallelrealities.co.uk/virusKiller.php"
12
13 DEPEND=">= media-libs/libsdl-1.2
14 >= media-libs/sdl-mixer-1.2
15 >= media-libs/sdl-image-1.2
16 >= media-libs/sdl-ttf-2.0.7
17 >= dev-libs/zziplib-0.10.82"
18
19 SDEPEND=">= sys-apps/sed-4"
20
21 SRCFILE="${PNAME}-${PVER}-1.tar.gz"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 sminclude mbuild
25
26 SRC_URI=(
27 "http://www.parallelrealities.co.uk/download.php?file=${SRCFILE}&type=zip"
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 src_compile()
32 {
33 cd ${SRCDIR}
34
35 # fix our CFLAGS
36 sed -i 's:$(CXX) $(CFLAGS):$(CXX) $(CFLAGS) ${CFLAGS}:g' [Mm]akefile || die
37
38 mmake \
39 BINDIR="/usr/games/${PNAME}/bin/" \
40 DATADIR="/usr/games/${PNAME}/share/" \
41 DOCDIR="/usr/share/doc/${PNAME}-${PVER}/" \
42 || die
43 }
44
45 src_install()
46 {
47 cd ${SRCDIR}
48
49 # needed directories
50 install -d ${BINDIR}/usr/bin || die
51 install -d ${BINDIR}/usr/games/${PNAME}/{bin,share} || die
52 install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die
53
54 mmake \
55 PREFIX=${BINDIR}/usr \
56 BINDIR="${BINDIR}/usr/games/${PNAME}/bin/" \
57 DATADIR="${BINDIR}/usr/games/${PNAME}/share/" \
58 DOCDIR="${BINDIR}/usr/share/doc/${PNAME}-${PVER}/" \
59 install || die
60
61 # compress docs
62 gzip -9 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/{LICENSE,README} || die
63
64 # symlink binary to /usr/bin
65 ln -snf ../games/${PNAME}/bin/${PNAME} ${BINDIR}/usr/bin/${PNAME} || die
66
67 # fix permissions
68 chmod 0754 ${BINDIR}/usr/bin/${PNAME} || die
69 chmod 0754 ${BINDIR}/usr/games/${PNAME}/bin/${PNAME} || die
70 chown root:games ${BINDIR}/usr/bin/${PNAME} || die
71 chown -R root:games ${BINDIR}/usr/games/${PNAME} || die
72 }

Properties

Name Value
svn:keywords Id