updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / dfg / PKGBUILD
blobc9cff796449b8e8063dedd5d9aed144c7c00287e
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: Pnevma <Klavious@gmail.com>
3 # Contributor: djnm <nmihalich [at} gmail dott com>
4 # Contributor: ignus <m.a.lukasiewicz at gmail>
5 # Contributor: xnitropl <xnitropl at gmail dot com>
7 pkgname=dfg
8 pkgver=31_25_a
9 pkgrel=1
10 pkgdesc="Mike Mayday's combined pack (DFG) is an unofficial semi-graphic version of Dwarf Fortress based on the work of the DF community."
11 arch=('i686' 'x86_64')
12 url="http://mayday.w.staszic.waw.pl/df.php"
13 license=('custom')
14 depends=('gtk2' 'sdl' 'sdl_image' 'libgl' 'sdl_ttf')
15 [ "$CARCH" = "x86_64" ] && depends=('lib32-glibc' 'lib32-gtk2' 'lib32-sdl_image' 'lib32-libgl' 'lib32-mesa' 'lib32-libxdamage' 'lib32-sdl_ttf') 
16 makedepends=('unzip')
17 conflicts=('dwarffortress' 'bin32-dwarffortress')
18 provides=('dwarffortress' 'bin32-dwarffortress')
19 install=$pkgname.install
20 source=(http://www.bay12games.com/dwarves/df_31_25_linux.tar.bz2
21         http://mayday.w.staszic.waw.pl/~mayday/upload/dfg_${pkgver}_win.zip
22         dwarffortress
23         dfg.desktop
24         init.txt)
25 md5sums=('def0c37560d7165c9065c4a4d8defc7e'
26          'e23551d2ccf4cb16feacf9c014c937b3'
27          '8b081a0b081d5d204308de152420f24d'
28          'e6bc3fedcfe87b7978efe688464969c0'
29          'd7572d643c2cb1c8f47060333995b4ba')
31 build() {
32   cd ${srcdir}
33   unzip -qqo dfg_${pkgver}_win.zip
34   rm -r $srcdir/df_linux/raw
35   cp -r $srcdir/raw $srcdir/df_linux/raw
37   rm -r $srcdir/df_linux/data/art
38   cp -r $srcdir/data/art $srcdir/df_linux/data/art
40   cp $srcdir/data/init/embark_profiles.txt $srcdir/df_linux/data/init/embark_profiles.txt
41   cp $srcdir/init.txt $srcdir/df_linux/data/init/init.txt
43   mkdir -p $pkgdir/opt/
44   cp -r $srcdir/df_linux $pkgdir/opt/df_linux
46   if [ "$CARCH" = "x86_64" ] ; then
47     ln -s /opt/lib32/usr/lib/libjpeg.so $pkgdir/opt/df_linux/libs/libjpeg.so.62
48   fi
49   
50   chown -R root:games $pkgdir/opt/df_linux
51   chmod -R 775 $pkgdir/opt/df_linux
52   chmod 755 $pkgdir/opt/df_linux/df
53 #  chmod 755 $pkgdir/opt/df_linux/dwarfort.exe
54   
55   install -D -m755 $srcdir/dwarffortress $pkgdir/usr/bin/dwarffortress
56   install -D -m644 $srcdir/df_linux/readme.txt $pkgdir/usr/share/licenses/dwarffortress/readme.txt
57   install -D -m644 $srcdir/dfg.desktop $pkgdir/usr/share/applications/dfg.desktop
59 # vim:set ts=2 sw=2 et: