updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / daggerfall-fixes / PKGBUILD
blobbfa2bd814cec7782b00a45bd02f49c088b07bbef
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=daggerfall-fixes
3 pkgver=20110717
4 pkgrel=1
5 pkgdesc="The Elder Scrolls II: Daggerfall, unofficial fixes"
6 arch=('any')
7 url="http://www.uesp.net/wiki/Daggerfall:Files#Unofficial_Patches_and_Fixes"
8 license=('custom:daggerfall')
9 depends=(daggerfall)
10 makedepends=(unzip)
11 options=(!emptydirs)
12 install=fixes.install
13 source=(http://images.uesp.net/9/9d/Fixqs001.zip
14         http://images.uesp.net/6/6f/SPELLS.zip
15         http://images.uesp.net/0/0c/BIOG00T0.zip
16         http://images.uesp.net/d/d6/FACTFIX.ZIP
17         http://images.uesp.net/e/ed/DF-POLITIC.PAK.zip
18         http://images.uesp.net/f/f2/DunmerFall.zip
19         http://images.uesp.net/0/0f/DFQFIX.ZIP
20         http://images.uesp.net/9/95/Q0C00Y03.ZIP
21         http://slushpool.fortunecity.com/magicdef.zip
22         andyfall-fixes.patch magical_effects_fix.patch)
23 noextract=(Fixqs001.zip SPELLS.zip BIOG00T0.zip FACTFIX.ZIP DF_POLITIC.PAK.zip
24            DunmerFall.zip DFQFIX.ZIP Q0C00Y03.ZIP magicdef.zip)
25 md5sums=('4b8d31d14f3ee8c7400bdf8c9768aa1c'
26          '1e7d295e27b3da4be5484ae6e898eaf9'
27          '74a724074bf48b5cc64477d99f88f005'
28          '42f248b13255d905148d448c2372732c'
29          '1696cbc71f33d9d884a4d2d71b53649a'
30          '1d534a2c5326d5b65b40295c152064a2'
31          '9895b19dd830692f54b155e6046efed7'
32          '27d0a087d4972cfdb267e0ada4967862'
33          '8162c3e6cdc7284b7238155cb5a732e8'
34          'cf8264f3447f7801f40b394c0c91c459'
35          'ed218728235b6e65c0ee896995f27bc5')
37 build() {
38   cd "$srcdir"
39   _target="${pkgdir}"/usr/share/games/daggerfall/mods
40   install -d "$_target"
42   cd "$_target"
43   install -d fixqs001-fixes/ARENA2
44   cd fixqs001-fixes/ARENA2
45   unzip "$srcdir"/Fixqs001.zip
46   rm readme.pqs
47   ls | while read file; do mv $file `echo $file | sed 's/.*/\U&/'`; done
48   rm O0B1XY13.QBN
49   rm O0B1XY13.QRC
50   rm O0B2XY14.QBN
51   rm O0B2XY14.QRC
52   rm O0B3XY15.QBN
53   rm O0B3XY15.QRC
54   rm O0B4XY16.QBN
55   rm O0B4XY16.QRC
56   rm O0B50Y17.QBN
57   rm O0B50Y17.QRC
58   cd "$_target"
59   echo "fixqs001-fixes" > fixes.extends
61   cd "$_target"
62   install -d jumping_spell_fix/ARENA2
63   cd jumping_spell_fix/ARENA2
64   unzip "$srcdir"/SPELLS.zip
65   cd "$_target"
66   echo "jumping_spell_fix" >> fixes.extends
68   cd "$_target"
69   install -d magical_effects_fix/ARENA2
70   cd magical_effects_fix/ARENA2
71   unzip "$srcdir"/magicdef.zip
72   rm README.TXT
73   cd "$_target"
74   cp "$srcdir"/magical_effects_fix.patch .
75   echo "magical_effects_fix" >> fixes.extends
77   cd "$_target"
78   install -d mages_biography_fix/ARENA2
79   cd mages_biography_fix/ARENA2
80   unzip "$srcdir"/BIOG00T0.zip
81   cd "$_target"
82   echo "mages_biography_fix" >> fixes.extends
84   cd "$_target"
85   install -d faction_fix/ARENA2
86   cd faction_fix/ARENA2
87   unzip "$srcdir"/FACTFIX.ZIP
88   rm README.TXT
89   cd "$_target"
90   echo "faction_fix" >> fixes.extends
92   cd "$_target"
93   install -d wrothgarian_enclave_fix/ARENA2
94   cd wrothgarian_enclave_fix/ARENA2
95   unzip "$srcdir"/DF-POLITIC.PAK.zip
96   cd "$_target"
97   echo "wrothgarian_enclave_fix" >> fixes.extends
99   cd "$_target"
100   install -d andyfall-fixes/ARENA2
101   cd andyfall-fixes/ARENA2
102   unzip "$srcdir"/DunmerFall.zip
103   rm readme.txt
104   rm -rf BAK
105   cd "$_target"
106   cp "$srcdir"/andyfall-fixes.patch .
107   echo "andyfall-fixes" >> fixes.extends
109   cd "$_target"
110   install -d dfqfix/ARENA2
111   cd dfqfix/ARENA2
112   unzip "$srcdir"/DFQFIX.ZIP
113   rm README.TXT
114   rm STARTFIN.QBN
115   rm STARTFIN.QRC
116   rm STARTFIX.QBN
117   rm STARTFIX.QRC
118   cd "$_target"
119   echo "fixqs001-fixes" > dfqfix.extends
120   echo "dfqfix" >> fixes.extends
122   cd "$_target"
123   install -d extra_quests_patch-fixes/ARENA2
124   cd extra_quests_patch-fixes/ARENA2
125   unzip "$srcdir"/Q0C00Y03.ZIP
126   cd "$_target"
127   echo "extra_quests_patch-fixes" >> fixes.extends
129   chgrp -R games "$pkgdir"/usr/share/games/daggerfall
130   chmod -R g+rw "$pkgdir"/usr/share/games/daggerfall