1 # Contributor: Dragonlord <archlinux[at]dragonlord[.]cz>
6 pkgdesc="Control a sword-swinging character that explores dungeons and fights monsters in this puzzle game."
8 url="http://www.drod.net/"
10 depends=('sdl_ttf' 'alsa-lib' 'libstdc++5' 'desktop-file-utils')
11 install=$pkgname.install
12 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/DRODAESetup-$pkgver.run \
16 md5sums=('9356058c3721398c97cede2b48a1a73b'
17 '345fc5de0205509f30479a485ee0b9d0'
18 '3d52f716f8040b7dde06d35f20b1a922')
21 cd $startdir/src/$pkgname-$pkgver
23 sh $startdir/src/DRODAESetup-$pkgver.run --target $pkgname-$pkgver --noexec || return 1
25 install -d "$startdir/pkg/opt/$pkgname-ae" "$startdir/pkg/usr/bin"
27 cp -R $startdir/src/$pkgname-$pkgver/Data $startdir/pkg/opt/$pkgname-ae || return 1
28 cp -R $startdir/src/$pkgname-$pkgver/Libs $startdir/pkg/opt/$pkgname-ae || return 1
29 find $startdir/pkg/opt/$pkgname-ae -type f -exec chmod 644 {} \; || return 1
30 install -D -m755 "$startdir/src/$pkgname-$pkgver/bin/Linux/x86/glibc-2.1/$pkgname-ae.bin" \
31 "$startdir/pkg/opt/$pkgname-ae/$pkgname-ae.bin" || return 1
33 install -D -m644 "$startdir/src/$pkgname-$pkgver/${pkgname}ae.xpm" \
34 "$startdir/pkg/usr/share/pixmaps/${pkgname}-ae.xpm" || return 1
35 install -D -m755 "$startdir/src/$pkgname-ae" "$startdir/pkg/usr/bin/$pkgname-ae" || return 1
36 install -D -m644 "$startdir/$pkgname-ae.desktop" \
37 "$startdir/pkg/usr/share/applications/$pkgname-ae.desktop" || return 1