updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qtads / PKGBUILD
blob5b370b2675be720700c3dc5f667eb24933853866
1 # Contributor: Rene Wiermer <rwiermer@googlemail.com>
2 # Contributor: Eric Forgeot < http://anamnese.online.fr >
4 pkgname=qtads
5 arch=('i686' 'x86_64')
6 pkgver=2.1.1
7 pkgrel=1
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/"
10 license=('GPL')
11 depends=('qt' 'sdl_sound')
12 source=(http://downloads.sourceforge.net/sourceforge/qtads/$pkgname-$pkgver.tar.bz2)
13 md5sums=('352473247ed0768429930cfc3648abbf')
15 build() {
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
20 make || return 1
21 #make INSTALL_ROOT=$startdir/pkg/ install
25 package() {
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/
45         #desktop icons
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
49         
50         install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop