updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / daggerfall-addons / PKGBUILD
blob0e351035b5c9c82643be18a969f91f5c1ef54b96
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=daggerfall-addons
3 pkgver=20110716
4 pkgrel=2
5 pkgdesc="The Elder Scrolls II: Daggerfall, unofficial Add-Ons"
6 arch=('any')
7 url="http://www.uesp.net/wiki/Daggerfall:Files#Unofficial_Add-Ons"
8 license=('custom:daggerfall')
9 depends=(daggerfall daggerfall-fixes)
10 makedepends=(unzip)
11 options=(!emptydirs)
12 install=addons.install
13 source=(http://images.uesp.net//9/9d/Fixqs001.zip
14         http://www.uesp.net/dagger/files/xtraqst.zip
15         http://www.uesp.net/dagger/files/xtraqst2.zip
16         http://images.uesp.net//0/0d/Xtraqst3.zip
17         http://www.uesp.net/dagger/files/xqse.zip
18         http://www.uesp.net/dagger/files/xqpatch.zip
19         http://images.uesp.net//3/34/Lbsword.zip
20         http://www.uesp.net/dagger/files/addtext.zip
21         http://www.svatopluk.com/daggerfall/mods/BrenRSC1.zip
22         http://www.svatopluk.com/daggerfall/mods/BrenRSC2.zip
23         http://images.uesp.net//5/5e/MountedGuards.zip
24         http://images.uesp.net//0/04/WeaponsFall.zip
25         http://images.uesp.net//9/9c/ArmorFall.zip
26         http://images.uesp.net//c/c3/ClothesFall.zip
27         http://images.uesp.net//f/f8/WomenFall.zip
28         http://www.svatopluk.com/daggerfall/mods/andyfall.zip
29         andyfall-clothes.patch andyfall-armor.patch andyfall.patch)
30 noextract=(xtraqst.zip xtraqst2.zip Xtraqst3.zip xqse.zip xqpatch.zip Lbsword.zip
31            MountedGuards.zip WeaponsFall.zip ArmorFall.zip ClothesFall.zip WomenFall.zip
32            addtext.zip BrenRSC1.zip BrenRSC2.zip Fixqs001.zip)
33 md5sums=('4b8d31d14f3ee8c7400bdf8c9768aa1c'
34          'bfda6a00f48aec717a9811debb594050'
35          '2e05d882d5d3750142e5dc513064e639'
36          'd10f136d77d514c1ff932fea49c9739c'
37          '85b487fbbd0999660391c9e796664626'
38          'b802a0e83d4c7aa707f681540758ca54'
39          'fd07e8b79ec015421bae0e4ddaeee002'
40          '13d33aae6edc1abaf6e060e775873588'
41          '50711bb9b198972c41a9e8b9c74559ba'
42          '8b585dc1c1ee47e348613dc60180720d'
43          '9a27ce990dc32df5f92cb5a841b6ceaa'
44          'ae5d7a13120754e3f1574767958977a7'
45          '567f827b27536c740459269a02869c14'
46          '3ceea5532385b3c77a5d38e971915c1e'
47          '6fd1aa6fae821a86bf5f41fca20c52a7'
48          '616dc4a41ca41f4e840d7d1ccbd2234f'
49          '562ce2074af5bc90bc1605a47f836f32'
50          '84a8c8a72c4170a2b2914b778e5d54f8'
51          'e81bc2c89560d7e486a487aa1ea83264')
53 build() {
54   cd "$srcdir"
55   _target="${pkgdir}"/usr/share/games/daggerfall/mods
56   install -d "$_target"
58   cd "$_target"
59   echo "andyfall-fixes" > andyfall-lite.extends
60   echo "andyfall-fixes" > andyfall.extends
62   cd "$_target"
63   install -d fixqs001-addons/ARENA2
64   cd fixqs001-addons/ARENA2
65   unzip "$srcdir"/Fixqs001.zip
66   rm readme.pqs
67   rm 40c00y00.qbn            
68   rm 40c00y00.qrc            
69   rm a0c00y12.qbn            
70   rm a0c00y12.qrc            
71   rm c0b00y02.qbn            
72   rm c0b00y02.qrc            
73   rm c0c00y10.qbn            
74   rm c0c00y10.qrc            
75   rm o0b00y00.qbn            
76   rm o0b00y00.qrc            
77   rm o0b10y00.qbn            
78   rm o0b10y00.qrc            
79   rm r0c30y25.qbn            
80   rm r0c30y25.qrc            
81   rm r0c4xy23.qbn            
82   rm r0c4xy23.qrc            
83   rm s0000999.qbn            
84   rm s0000999.qrc            
85   rm s0000007.qbn            
86   rm s0000007.qrc            
87   rm s0000004.qbn            
88   rm s0000004.qrc     
89   ls | while read file; do mv $file `echo $file | sed 's/.*/\U&/'`; done
90   cd "$_target"
91   echo "fixqs001-addons" > addons.extends
93   cd "$_target"
94   install -d extra_quests_1/ARENA2
95   cd extra_quests_1/ARENA2
96   unzip "$srcdir"/xtraqst.zip
97   rm README.TXT
98   cd "$_target"
99   echo "extra_quests_1" >> addons.extends
101   cd "$_target"
102   install -d extra_quests_2/ARENA2
103   cd extra_quests_2/ARENA2
104   unzip "$srcdir"/xtraqst2.zip
105   rm README.TXT
106   cd "$_target"
107   echo "extra_quests_2" >> addons.extends
109   cd "$_target"
110   install -d extra_quests_3/ARENA2
111   cd extra_quests_3/ARENA2
112   unzip "$srcdir"/Xtraqst3.zip
113   rm README.TXT
114   cd "$_target"
115   echo "extra_quests_3" >> addons.extends
117   cd "$_target"
118   install -d extra_quests_se/ARENA2
119   cd extra_quests_se/ARENA2
120   unzip "$srcdir"/xqse.zip
121   rm README.TXT
122   cd "$_target"
123   echo "extra_quests_1" > extra_quests_se.extends
124   echo "extra_quests_se" >> addons.extends
126   cd "$_target"
127   install -d extra_quests_patch-addons/ARENA2
128   cd extra_quests_patch-addons/ARENA2
129   unzip "$srcdir"/xqpatch.zip
130   rm PATCH.TXT
131   rm Q0C00Y03.QBN            
132   rm Q0C00Y03.QRC       
133   cd "$_target"
134   echo "extra_quests_2" > extra_quests_patch-addons.extends
135   echo "extra_quests_se" >> extra_quests_patch-addons.extends
136   echo "extra_quests_patch-addons" >> addons.extends
138   cd "$_target"
139   install -d live_by_the_sword/ARENA2
140   cd live_by_the_sword/ARENA2
141   unzip "$srcdir"/Lbsword.zip
142   mv quests ..
143   rm -rf *
144   mv ../quests/* .
145   rm -rf ../quests
146   ls | while read file; do mv $file `echo $file | sed 's/.*/\U&/'`; done
147   cd "$_target"
148   echo "live_by_the_sword" >> addons.extends
149   
150   cd "$_target"
151   install -d added_text/ARENA2
152   cd added_text/ARENA2
153   unzip "$srcdir"/addtext.zip
154   rm text.txt
155   mv Text.rsc TEXT.RSC
157   cd "$_target"
158   install -d brendan_text/ARENA2
159   cd brendan_text/ARENA2
160   unzip "$srcdir"/BrenRSC1.zip
161   rm BrenRSC1.txt
162   mv Brendan1.rsc TEXT.RSC
164   cd "$_target"
165   install -d brendan_straight_text/ARENA2
166   cd brendan_straight_text/ARENA2
167   unzip "$srcdir"/BrenRSC2.zip
168   rm -rf __MACOSX
169   mv BrenRSC2/Brendan2.rsc TEXT.RSC
170   rm -rf BrenRSC2
171   cd "$_target"
172   echo "brendan_straight_text" >> addons.extends
174   cd "$_target"
175   install -d andyfall-mounted_guards/ARENA2
176   cd andyfall-mounted_guards/ARENA2
177   unzip "$srcdir"/MountedGuards.zip
178   rm readme.txt
179   rm -rf BAK
180   cd "$_target"
181   echo "andyfall-mounted_guards" >> andyfall-lite.extends
182   echo "andyfall-mounted_guards" >> andyfall.extends
183   echo "andyfall-mounted_guards" >> addons.extends
185   cd "$_target"
186   install -d andyfall-weapons/ARENA2
187   cd andyfall-weapons/ARENA2
188   unzip "$srcdir"/WeaponsFall.zip
189   rm readme.txt
190   rm -rf BAK
191   cd "$_target"
192   echo "andyfall-weapons" >> andyfall-lite.extends
193   echo "andyfall-weapons" >> andyfall.extends
194   echo "andyfall-weapons" >> addons.extends
196   cd "$_target"
197   install -d andyfall-armor/ARENA2
198   cd andyfall-armor/ARENA2
199   unzip "$srcdir"/ArmorFall.zip
200   rm readme.txt
201   rm -rf BAK
202   cd "$_target"
203   mv "$srcdir"/andyfall-armor.patch .
204   echo "andyfall-armor" >> andyfall-lite.extends
205   echo "andyfall-armor" >> andyfall.extends
206   echo "andyfall-armor" >> addons.extends
208   cd "$_target"
209   install -d andyfall-clothes/ARENA2
210   cd andyfall-clothes/ARENA2
211   unzip "$srcdir"/ClothesFall.zip
212   rm readme.txt
213   rm -rf BAK
214   cd "$_target"
215   mv "$srcdir"/andyfall-clothes.patch .
216   echo "andyfall-clothes" >> andyfall-lite.extends
217   echo "andyfall-clothes" >> andyfall.extends
218   echo "andyfall-clothes" >> addons.extends
220   cd "$_target"
221   install -d andyfall-women/ARENA2
222   cd andyfall-women/ARENA2
223   unzip "$srcdir"/WomenFall.zip
224   rm readme.txt
225   rm -rf BAK
226   cd "$_target"
227   echo "andyfall-women" >> andyfall-lite.extends
228   echo "andyfall-women" >> andyfall.extends
229   echo "andyfall-women" >> addons.extends
231   install -d andyfall/ARENA2
232   cd andyfall/ARENA2
233   cp "$srcdir"/ANDYFALL/ARENA2/CLASS* .
234   cd "$_target"
235   echo "andyfall-lite" >> andyfall.extends
236   mv "$srcdir"/andyfall.patch .
238   chgrp -R games "$pkgdir"/usr/share/games/daggerfall
239   chmod -R g+rw "$pkgdir"/usr/share/games/daggerfall