Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 13th, 2011  |  syntax: None  |  size: 1.60 KB  |  views: 130  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Rene Wiermer <rwiermer@googlemail.com>
  2. # Contributor: Eric Forgeot < http://anamnese.online.fr >
  3.  
  4. pkgname=qtads
  5. arch=('i686' 'x86_64')
  6. pkgver=2.0.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. makedepends=('qt')
  12. source=(http://downloads.sourceforge.net/sourceforge/qtads/$pkgname-$pkgver.tar.bz2)
  13.  
  14. md5sums=('aed18a1260a1ee7318e0b7ca58fec464')
  15.  
  16. build() {
  17. cd $srcdir/$pkgname-$pkgver
  18.  
  19. qmake CXXFLAGS="-fno-strict-aliasing" BIN_INSTALL=/usr/bin DOC_INSTALL=/usr/share/doc DATA_INSTALL=/usr/share || return 1
  20.  
  21. make || return 1
  22. #make INSTALL_ROOT=$startdir/pkg/ install
  23. }
  24.  
  25.  
  26.  
  27. package() {
  28.  
  29. mkdir -p $pkgdir/usr/share/qtads/doc
  30. mkdir -p $pkgdir/usr/bin/
  31.  
  32.  
  33. cp $srcdir/$pkgname-$pkgver/AUTHORS $pkgdir/usr/share/qtads/doc
  34. cp $srcdir/$pkgname-$pkgver/BUGS $pkgdir/usr/share/qtads/doc
  35. cp $srcdir/$pkgname-$pkgver/COPYING $pkgdir/usr/share/qtads/doc
  36. cp $srcdir/$pkgname-$pkgver/HTML_TADS_LICENSE $pkgdir/usr/share/qtads/doc
  37. cp $srcdir/$pkgname-$pkgver/INSTALL $pkgdir/usr/share/qtads/doc
  38. cp $srcdir/$pkgname-$pkgver/NEWS $pkgdir/usr/share/qtads/doc
  39. cp $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/qtads/doc
  40.  
  41.  
  42. cp $srcdir/$pkgname-$pkgver/qtads $pkgdir/usr/bin/
  43.  
  44.         #desktop icons
  45.         mkdir -p $pkgdir/usr/share/pixmaps
  46.         mkdir -p $pkgdir/usr/share/applications
  47.         cp $srcdir/$pkgname-$pkgver/$pkgname-logo.png $pkgdir/usr/share/pixmaps/$pkgname.png
  48.        
  49.         install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  50. }
clone this paste RAW Paste Data