2 # Maintainer: JD Steffen <jd AT steffennet DOT org>
7 pkgdesc="Hammer of Thyrion is based on the original Linux Hexen II project, Anvil of Thyrion"
9 url="http://uhexen2.sourceforge.net/"
11 depends=('sdl' 'sdl_mixer' 'gtk2')
12 makedepends=('xdelta' 'nasm')
13 provides=('hexenworld')
14 install=hexen2.install
15 source=(http://downloads.sourceforge.net/uhexen2/hexen2source-${pkgver}.tgz \
16 http://downloads.sourceforge.net/uhexen2/hexen2source-gamecode-${pkgver}.tgz \
17 http://downloads.sourceforge.net/uhexen2/hexenworld-pakfiles-0.15.tgz
20 md5sums=('426a091d6888203858f0a512ced3948c'
21 '5950b9bf743f9ba7e3038e1648dbbc72'
22 '9ac598a80765daa0862893bd0aac765a'
23 '2a2aa35969de221fcee88b3d2187e76e'
24 'cd519dc631152951026a5348e23547f4')
27 cd $srcdir/hexen2source-$pkgver
28 if [ "$CARCH" = i686 ]
30 sed -i -e 's/i586/i686 -mtune=generic/' scripts/makefile.inc
32 make -s -C hexen2 clean
34 make -s -C hexen2 clean
35 make -C hexen2 -f Makefile.sv
36 make -C hexenworld/Server
37 make -C hexenworld/Master
38 make -C hexenworld/Client glhw
39 make -C xdelta11 -f Makefile.xd
43 utils/hcc_old/hcc -src ../gamecode-$_dataver/hc/h2
44 utils/hcc_old/hcc -src ../gamecode-$_dataver/hc/h2 -name progs2.src
45 utils/bin/hcc -src ../gamecode-$_dataver/hc/portals -oi -on
46 utils/bin/hcc -src ../gamecode-$_dataver/hc/hw -oi -on
48 mkdir -p ${pkgdir}/opt/$pkgname/docs
49 install -D -m755 hexen2/h2ded ${pkgdir}/opt/$pkgname/h2ded
50 install -D -m755 hexen2/glhexen2 ${pkgdir}/opt/$pkgname/glhexen2
51 install -D -m755 hexenworld/Client/glhwcl ${pkgdir}/opt/$pkgname/glhwcl
52 install -D -m755 hexenworld/Server/hwsv ${pkgdir}/opt/$pkgname/hwsv
53 install -D -m755 hexenworld/Master/hwmaster ${pkgdir}/opt/$pkgname/hwmaster
54 install -D -m755 launcher/h2launcher ${pkgdir}/opt/$pkgname/h2launcher
55 # Make a symlink of the game-launcher
56 mkdir -p ${pkgdir}/usr/bin
57 install -D -m755 ../../hexen2.sh ${pkgdir}/usr/bin/$pkgname
60 install -D -m644 docs/README ${pkgdir}/opt/$pkgname/docs/README
61 install -D -m644 docs/COPYING ${pkgdir}/opt/$pkgname/docs/COPYING
62 install -D -m644 docs/BUGS ${pkgdir}/opt/$pkgname/docs/BUGS
63 install -D -m644 docs/TODO ${pkgdir}/opt/$pkgname/docs/TODO
64 install -D -m644 docs/ABOUT ${pkgdir}/opt/$pkgname/docs/ABOUT
65 install -D -m644 docs/Features ${pkgdir}/opt/$pkgname/docs/Features
66 install -D -m644 docs/CHANGES ${pkgdir}/opt/$pkgname/docs/CHANGES
67 install -D -m644 docs/README.3dfx ${pkgdir}/opt/$pkgname/docs/README.3dfx
68 install -D -m644 docs/README.launcher ${pkgdir}/opt/$pkgname/docs/README.launcher
69 install -D -m644 docs/README.hwcl ${pkgdir}/opt/$pkgname/docs/README.hwcl
70 install -D -m644 docs/README.hwsv ${pkgdir}/opt/$pkgname/docs/README.hwsv
71 install -D -m644 docs/README.hwmaster ${pkgdir}/opt/$pkgname/docs/README.hwmaster
72 install -D -m644 docs/ReleaseNotes-$pkgver ${pkgdir}/opt/$pkgname/docs/ReleaseNotes-$pkgver
73 # install release notes for the older versions
74 install -D -m644 docs/ReleaseNotes-1.2.3 ${pkgdir}/opt/$pkgname/docs/ReleaseNotes-1.2.3
75 install -D -m644 docs/ReleaseNotes-1.2.4a ${pkgdir}/opt/$pkgname/docs/ReleaseNotes-1.2.4a
76 install -D -m644 docs/ReleaseNotes-1.3.0 ${pkgdir}/opt/$pkgname/docs/ReleaseNotes-1.3.0
77 install -D -m644 docs/ReleaseNotes-1.4.0 ${pkgdir}/opt/$pkgname/docs/ReleaseNotes-1.4.0
78 mkdir -p ${pkgdir}/opt/$pkgname/data1/
80 install -D -m644 gamecode-$_dataver/hc/h2/progs.dat ${pkgdir}/opt/$pkgname/data1/progs.dat
81 install -D -m644 gamecode-$_dataver/hc/h2/progs2.dat ${pkgdir}/opt/$pkgname/data1/progs2.dat
82 install -D -m644 gamecode-$_dataver/txt/h2/hexen.rc ${pkgdir}/opt/$pkgname/data1/hexen.rc
83 install -D -m644 gamecode-$_dataver/txt/h2/strings.txt ${pkgdir}/opt/$pkgname/data1/strings.txt
84 install -D -m644 gamecode-$_dataver/txt/h2/default.cfg ${pkgdir}/opt/$pkgname/data1/default.cfg
85 mkdir -p ${pkgdir}/opt/$pkgname/portals/
86 install -D -m644 gamecode-$_dataver/hc/portals/progs.dat ${pkgdir}/opt/$pkgname/portals/progs.dat
87 install -D -m644 gamecode-$_dataver/txt/portals/hexen.rc ${pkgdir}/opt/$pkgname/portals/hexen.rc
88 install -D -m644 gamecode-$_dataver/txt/portals/strings.txt ${pkgdir}/opt/$pkgname/portals/strings.txt
89 install -D -m644 gamecode-$_dataver/txt/portals/infolist.txt ${pkgdir}/opt/$pkgname/portals/infolist.txt
90 install -D -m644 gamecode-$_dataver/txt/portals/maplist.txt ${pkgdir}/opt/$pkgname/portals/maplist.txt
91 install -D -m644 gamecode-$_dataver/txt/portals/puzzles.txt ${pkgdir}/opt/$pkgname/portals/puzzles.txt
92 install -D -m644 gamecode-$_dataver/txt/portals/default.cfg ${pkgdir}/opt/$pkgname/portals/default.cfg
93 mkdir -p ${pkgdir}/opt/$pkgname/hw/
94 install -D -m644 gamecode-$_dataver/hc/hw/hwprogs.dat ${pkgdir}/opt/$pkgname/hw/hwprogs.dat
95 install -D -m644 gamecode-$_dataver/txt/hw/strings.txt ${pkgdir}/opt/$pkgname/hw/strings.txt
96 install -D -m644 gamecode-$_dataver/txt/hw/default.cfg ${pkgdir}/opt/$pkgname/hw/default.cfg
97 install -D -m644 hw/pak4.pak ${pkgdir}/opt/$pkgname/hw/pak4.pak
99 # Install the xdelta updates
100 mkdir -p ${pkgdir}/opt/$pkgname/patchdata/
101 mkdir -p ${pkgdir}/opt/$pkgname/patchdata/data1
102 install -D -m755 gamecode-$_dataver/pak_v111/update_xdelta.sh ${pkgdir}/opt/$pkgname/update_xdelta.sh
103 install -D -m644 gamecode-$_dataver/pak_v111/patchdata/data1/data1pak0.xd ${pkgdir}/opt/$pkgname/patchdata/data1/data1pak0.xd
104 install -D -m644 gamecode-$_dataver/pak_v111/patchdata/data1/data1pak1.xd ${pkgdir}/opt/$pkgname/patchdata/data1/data1pak1.xd
105 install -D -m755 hexen2source-$pkgver/xdelta11/xdelta ${pkgdir}/opt/$pkgname/xdelta114
106 mkdir -p ${pkgdir}/usr/share/pixmaps
107 mkdir -p ${pkgdir}/usr/share/applications
108 install -m644 hexen2source-$pkgver/hexen2/icons/h2_32x32x4.png ${pkgdir}/usr/share/pixmaps/hexen2.png
109 install -m644 ../$pkgname.desktop ${pkgdir}/usr/share/applications