Magellan Linux

Contents of /trunk/extras/starfighter/starfighter-1.1-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1687 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/starfighter/starfighter-1.1-r5.smage2,v 1.2 2008/02/07 14:23:54 niro Exp $
2
3 PNAME="starfighter"
4 PVER="1.1"
5 PBUILD="r5"
6
7 PCATEGORIE="x11-games"
8 STATE="testing"
9
10 DESCRIPTION="2D scrolling shooter game."
11 HOMEPAGE="http://www.parallelrealities.co.uk/starfighter.php"
12
13 DEPEND=">= media-libs/libsdl-1.2
14 >= media-libs/sdl-mixer-1.2
15 >= media-libs/sdl-image-1.2"
16
17 SDEPEND=">= sys-apps/sed-4"
18
19 SRCFILE="${PNAME}-${PVER}-1.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild
23
24 SRC_URI=(
25 "http://www.parallelrealities.co.uk/download.php?file=${SRCFILE}&type=zip"
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 src_compile()
30 {
31 cd ${SRCDIR}
32
33 # fix our CFLAGS
34 sed -i "s:-O3:${CFLAGS}:g" [Mm]akefile || die
35
36 mmake \
37 BINDIR="/usr/games/${PNAME}/bin/" \
38 DATADIR="/usr/games/${PNAME}/share/" \
39 DOCDIR="/usr/share/doc/${PNAME}-${PVER}/" \
40 || die
41 }
42
43 src_install()
44 {
45 cd ${SRCDIR}
46
47 # needed directories
48 install -d ${BINDIR}/usr/bin || die
49 install -d ${BINDIR}/usr/games/${PNAME}/{bin,share} || die
50 install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die
51
52 mmake \
53 BINDIR="${BINDIR}/usr/games/${PNAME}/bin/" \
54 DATADIR="${BINDIR}/usr/games/${PNAME}/share/" \
55 DOCDIR="${BINDIR}/usr/share/doc/${PNAME}-${PVER}/" \
56 install || die
57
58 # compress docs
59 gzip -9 ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/LICENSE || die
60
61 # symlink binary to /usr/bin
62 ln -snf ../games/${PNAME}/bin/${PNAME} ${BINDIR}/usr/bin/${PNAME} || die
63
64 # fix permissions
65 chmod 0754 ${BINDIR}/usr/bin/${PNAME} || die
66 chmod 0754 ${BINDIR}/usr/games/${PNAME}/bin/${PNAME} || die
67 chown root:games ${BINDIR}/usr/bin/${PNAME} || die
68 chown -R root:games ${BINDIR}/usr/games/${PNAME} || die
69 }

Properties

Name Value
svn:keywords Id