updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / glest-domineonic / PKGBUILD
blob41ecbd591a49475d002780fa93f3cd79af79d642
1 # Contributor: Tomas Groth <tomasgroth@yahoo.dk>
2 pkgname=glest-domineonic
3 pkgver=0.1
4 pkgrel=1
5 pkgdesc="Domineonic - mod for glest"
6 arch=(i686 x86_64)
7 url="http://www.moddb.com/mods/10252/demonionic"
8 depends=('glest' 'glest-data')
9 makedepends=()
10 conflicts=()
11 license="GPL"
12 source=(Domineonic.zip)
13 md5sums=('30a3058ab7e596226b0f33bfa4ff6711')
15 # You have to download Domineonic.zip from 
16 # http://www.moddb.com/mods/10252/demonionic/downloads (Demonionic-update).
17 # It can't be done automaticly because of the server the file is on.
19 build() {
20   mkdir -p $startdir/pkg/opt/glest/{maps,scenarios}
21   cd $startdir/pkg/opt/glest
22   cp -r $startdir/src/Domineonic/maps/{BigLand.gbm,FourKingdoms.gbm,MovingInland.gbm,fight*,open_field.gbm,the_ruins.gbm} maps/
23   cp -r $startdir/src/Domineonic/scenarios/Napoleon1.xml scenarios/
24   cp -r $startdir/src/Domineonic/techs .
26   # Fix scenario file
27   cd $startdir/pkg/opt/glest/scenarios/
28   sed -i -e 's#<scenario>#<scenario><difficulty value="2"/>#' Napoleon1.xml