Magellan Linux

Contents of /trunk/extras/nwn-resources/nwn-resources-1.29-r3.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: 1939 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/nwn-resources/nwn-resources-1.29-r3.smage2,v 1.4 2008/02/07 14:23:51 niro Exp $
2
3 PNAME="nwn-resources"
4 PVER="1.29"
5 PBUILD="r3"
6
7 PCATEGORIE="x11-games"
8 STATE="testing"
9
10 DESCRIPTION="Neverwinter Nights resource files."
11 HOMEPAGE="http://nwn.bioware.com/index.html"
12
13 DEPEND=">= virtual/opengl
14 >= media-libs/libsdl-1.2.9"
15
16 SRCRESOURCES="nwresources${PVER/.}.tar.gz"
17 SRCCLIENT="nwclient${PVER/.}.tar.gz"
18 SRCDIR="${BUILDDIR}/nwn"
19
20 NOSTRIP=true
21
22 sminclude mtools
23
24 SRC_URI=(
25 http://nwdownloads.bioware.com/neverwinternights/linux/${PVER/.}/${SRCCLIENT}
26 http://files.bioware.com/neverwinternights/updates/linux/${SRCRESOURCES}
27 )
28
29 src_prepare()
30 {
31 munpack ${SRCRESOURCES} || die
32 munpack ${SRCCLIENT} ${SRCDIR} || die
33 }
34
35 src_install()
36 {
37 cd ${SRCDIR}
38
39 # needed directories
40 minstalldir /usr/games/nwn || die
41 minstalldir /usr/share/docs/ || die
42
43 mv ${SRCDIR}/* ${BINDIR}/usr/games/nwn || die
44
45 # mark empty directories undeletable
46 mkeepdir /usr/games/nwn/hak || die
47 mkeepdir /usr/games/nwn/localvault || die
48 mkeepdir /usr/games/nwn/portraits || die
49 mkeepdir /usr/games/nwn/saves || die
50 mkeepdir /usr/games/nwn/servervault || die
51
52 # fix permissions
53 mchown -R root:games /usr/games/nwn || die
54
55 # these dirs should be writeable to the group too
56 mchmod -R 0775 /usr/games/nwn/saves || die
57 mchmod -R 0775 /usr/games/nwn/localvault || die
58 mchmod -R 0775 /usr/games/nwn/dmvault || die
59 mchmod 0775 /usr/games/nwn || die
60
61 # fix execs
62 mchmod 0755 /usr/games/nwn/patch.key || die
63 mchmod 0755 /usr/games/nwn/nwn || die
64 mchmod 0755 /usr/games/nwn/dmclient || die
65
66 # these files comes along with nwn updates or are unneeded
67 rm ${BINDIR}/usr/games/nwn/nwmain || die
68 rm ${BINDIR}/usr/games/nwn/nwserver || die
69 rm ${BINDIR}/usr/games/nwn/fixinstall || die
70 rm ${BINDIR}/usr/games/nwn/nwn || die
71 rm ${BINDIR}/usr/games/nwn/dmclient || die
72
73 # want to use our libsdl
74 rm -rf ${BINDIR}/usr/games/nwn/lib || die
75 }

Properties

Name Value
svn:keywords Id