Annotation of /trunk/nonfree/nwn/nwn-1.68-r3.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
Original Path: trunk/extras/nwn/nwn-1.68-r3.smage2
File size: 2521 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
Original Path: trunk/extras/nwn/nwn-1.68-r3.smage2
File size: 2521 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/nwn/nwn-1.68-r3.smage2,v 1.3 2008/02/07 14:23:51 niro Exp $ |
2 | |||
3 | PNAME="nwn" | ||
4 | PVER="1.68" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCATEGORIE="x11-games" | ||
8 | STATE="testing" | ||
9 | |||
10 | DESCRIPTION="Neverwinter Nights (NWN) is a computer game set in a huge medieval fantasy world of Dungeons and Dragons." | ||
11 | HOMEPAGE="http://nwn.bioware.com/index.html" | ||
12 | |||
13 | DEPEND=">= sys-libs/libstdc++-v3-3.3 | ||
14 | >= virtual/opengl | ||
15 | >= x11-libs/libXext-1 | ||
16 | >= x11-libs/libX11-1 | ||
17 | >= media-libs/libsdl-1.2.9 | ||
18 | >= x11-games/nwn-resources-1.29" | ||
19 | |||
20 | SDEPEND=">= dev-util/desktop-file-utils-0.10" | ||
21 | |||
22 | SRCFILE="English_linuxclient${PVER/.}_orig.tar.gz" | ||
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
24 | |||
25 | NOSTRIP=true | ||
26 | |||
27 | sminclude mtools xdg | ||
28 | |||
29 | SRC_URI=( | ||
30 | http://files.bioware.com/neverwinternights/updates/linux/${PVER/.}/${SRCFILE} | ||
31 | mirror://${PNAME}/nwn-wrapper.sh | ||
32 | mirror://${PNAME}/nwn-dmc-wrapper.sh | ||
33 | mirror://${PNAME}/nwn.png | ||
34 | mirror://${PNAME}/nwn.desktop | ||
35 | mirror://${PNAME}/nwn-dmc.png | ||
36 | mirror://${PNAME}/nwn-dmc.desktop | ||
37 | ) | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | install -d ${SRCDIR} || die | ||
42 | munpack ${SRCFILE} ${SRCDIR} || die | ||
43 | } | ||
44 | |||
45 | src_install() | ||
46 | { | ||
47 | cd ${SRCDIR} | ||
48 | |||
49 | # needed directories | ||
50 | minstalldir /usr/bin || die | ||
51 | minstalldir /usr/games/nwn || die | ||
52 | minstalldir /usr/share/pixmaps || die | ||
53 | |||
54 | mv ${SRCDIR}/* ${BINDIR}/usr/games/nwn || die | ||
55 | |||
56 | # fix permissions | ||
57 | mchown -R root:games /usr/games/nwn || die | ||
58 | local i | ||
59 | for i in nwmain nwserver patch.key data/patch.bif | ||
60 | do | ||
61 | mchmod 0754 /usr/games/nwn/${i} || die | ||
62 | done | ||
63 | |||
64 | # dialog.tk is not readable by game group | ||
65 | mchmod g+rwX /usr/games/nwn/dialog.tlk || die | ||
66 | |||
67 | # install some wrappers working with our distribution | ||
68 | minstallexec -s nwn-wrapper.sh /usr/games/nwn/nwn || die | ||
69 | minstallexec -s nwn-dmc-wrapper.sh /usr/games/nwn/nwn-dmclient || die | ||
70 | mchown root:games /usr/games/nwn/nwn || die | ||
71 | mchown root:games /usr/games/nwn/nwn-dmclient || die | ||
72 | mchmod 0754 /usr/games/nwn/nwn || die | ||
73 | mchmod 0754 /usr/games/nwn/nwn-dmclient || die | ||
74 | |||
75 | mlink /usr/games/nwn/nwn /usr/bin || die | ||
76 | mlink /usr/games/nwn/nwn-dmclient /usr/bin/nwn-dmclient || die | ||
77 | |||
78 | # menu-entry for kde and gnome | ||
79 | minstallpixmap nwn.png || die | ||
80 | minstallpixmap nwn-dmc.png || die | ||
81 | |||
82 | minstall_desktop_icon \ | ||
83 | --name "Neverwinter Nights" \ | ||
84 | --comment "Role Playing Game" \ | ||
85 | --file nwn \ | ||
86 | --exec /usr/bin/nwn \ | ||
87 | --icon nwn.png \ | ||
88 | --categories Game,RolePlaying \ | ||
89 | || die | ||
90 | |||
91 | minstall_desktop_icon \ | ||
92 | --name "Neverwinter Nights (Dungeon Master Client)" \ | ||
93 | --comment "Role Playing Game" \ | ||
94 | --file nwn-dmc \ | ||
95 | --exec /usr/bin/nwn-dmclient \ | ||
96 | --icon nwn-dmc.png \ | ||
97 | --categories Game,RolePlaying \ | ||
98 | || die | ||
99 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |