1 # Contributor: Rene Wiermer <rwiermer@googlemail.com>
2 # Contributor: Eric Forgeot < http://anamnese.online.fr >
8 pkgdesc="A Qt-based interpreter for TADS text adventures. Support TADS 2 and 3, both for text-only and multimedia adventures."
9 url="http://qtads.sourceforge.net/"
11 depends=('qt' 'sdl_sound')
12 source=(http://downloads.sourceforge.net/sourceforge/qtads/$pkgname-$pkgver.tar.bz2)
13 md5sums=('352473247ed0768429930cfc3648abbf')
16 cd $srcdir/$pkgname-$pkgver
18 qmake CXXFLAGS="-fno-strict-aliasing" BIN_INSTALL=/usr/bin DOC_INSTALL=/usr/share/doc DATA_INSTALL=/usr/share || return 1
21 #make INSTALL_ROOT=$startdir/pkg/ install
27 mkdir -p $pkgdir/usr/share/qtads/doc
28 mkdir -p $pkgdir/usr/bin/
31 cp $srcdir/$pkgname-$pkgver/AUTHORS $pkgdir/usr/share/qtads/doc
32 cp $srcdir/$pkgname-$pkgver/BUGS $pkgdir/usr/share/qtads/doc
33 cp $srcdir/$pkgname-$pkgver/COPYING $pkgdir/usr/share/qtads/doc
34 #cp $srcdir/$pkgname-$pkgver/CREDITS $pkgdir/usr/share/qtads/doc
35 cp $srcdir/$pkgname-$pkgver/HTML_TADS_LICENSE $pkgdir/usr/share/qtads/doc
36 cp $srcdir/$pkgname-$pkgver/INSTALL $pkgdir/usr/share/qtads/doc
37 cp $srcdir/$pkgname-$pkgver/NEWS $pkgdir/usr/share/qtads/doc
38 #cp $srcdir/$pkgname-$pkgver/QTADS_LICENSE_NOTE $pkgdir/usr/share/qtads/doc
39 cp $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/qtads/doc
40 #cp $srcdir/$pkgname-$pkgver/SOURCE_README $pkgdir/usr/share/qtads/doc
43 cp $srcdir/$pkgname-$pkgver/qtads $pkgdir/usr/bin/
46 mkdir -p $pkgdir/usr/share/pixmaps
47 mkdir -p $pkgdir/usr/share/applications
48 cp $srcdir/$pkgname-$pkgver/$pkgname-logo.png $pkgdir/usr/share/pixmaps/$pkgname.png
50 install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop