Want more features on Pastebin? Sign Up, it's FREE!
Guest

scid_vs_pc 4.11

By: a guest on Feb 18th, 2014  |  syntax: Bash  |  size: 2.76 KB  |  views: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #Original Maintainer: scarecrow <gorillaki at gmail dot com>
  2.  
  3. pkgname=scid_vs_pc
  4. pkgver=4.11
  5. pkgrel=1
  6. pkgdesc="Shane's Chess Information Database"
  7. arch=('i686' 'x86_64')
  8. url="http://scidvspc.sourceforge.net/"
  9. license=('GPL2')
  10. depends=('tcl' 'tk' 'zlib')
  11. #'tdom-git' 'tkimg' 'snack')
  12. optdepends=('tdom-git: Internal Xfcc support.'
  13.             'snack: Enable Sound.'
  14.             'tkimg: Enable additional image support.'
  15. )
  16. install=$pkgname.install
  17. conflicts=('scid')
  18. source=($pkgname-$pkgver.tgz::http://downloads.sourceforge.net/project/scidvspc/source/$pkgname-$pkgver.tgz
  19.         scid
  20.         $pkgname.desktop
  21.         $pkgname.install
  22.         scidlet)
  23.  
  24. md5sums=('cb3575fca77176ad581dd01bd2ab92d5'
  25.          '342ea5daa4913ad47a4bbbf542fab7eb'
  26.          '1df155b3ff86a505dc51a29fa7bfc172'
  27.          'c9ba274c986122ca4c1cd202431b64ce'
  28.          'cab6854a711f974f1ba56942137cf2e6')
  29.  
  30. prepare(){
  31.         cd $srcdir/$pkgname-$pkgver
  32.        
  33.         # Fix for tcl 8.6
  34.         #sed -i 's/8.5/8.6/g' ./configure
  35.        
  36.         ./configure BINDIR=/usr/bin/ SHAREDIR=/usr/share/scid/ TCL_VERSION="8.6" OPTIMIZE="-O2 -funroll-loops"
  37.        
  38. }
  39.  
  40.  
  41. build() {
  42.         cd $srcdir/$pkgname-$pkgver
  43.        
  44.         make
  45.  
  46. }
  47.  
  48.  
  49.  
  50. package() {
  51.         cd $srcdir/$pkgname-$pkgver
  52.        
  53.         # Create directories
  54.         install -dm755 $pkgdir/usr/bin
  55.         install -dm755 $pkgdir/usr/share/scid/{bin,bitmaps,data,html,sounds,share}
  56.         install -dm755 $pkgdir/usr/share/scid/share/scid/{books,bases,data}
  57.         install -dm644 $pkgdir/usr/share/fonts/truetype/Scid
  58.        
  59.          # Data
  60.         install -m 755 scid sc_* scidpgn pgnfix spliteco pgnscid tkscid tcscid scmerge scidlet* scidt $pkgdir/usr/share/scid/bin
  61.         install -m 644  scid.eco $pkgdir/usr/share/scid/data
  62.         install -m 644  spelling.ssp $pkgdir/usr/share/scid
  63.        
  64.         # Start files
  65.         cp $srcdir/{scid,scidlet} $pkgdir/usr/bin
  66.        
  67.         # Opening books
  68.         install -m 666  books/* $pkgdir/usr/share/scid/share/scid/books
  69.        
  70.         # Sounds
  71.         cp sounds/* $pkgdir/usr/share/scid/sounds
  72.        
  73.         # Bases
  74.         install -m 666  bases/* $pkgdir/usr/share/scid/share/scid/bases
  75.        
  76.         # Bitmaps
  77.         cp bitmaps/* $pkgdir/usr/share/scid/bitmaps
  78.                
  79.         # Docs
  80.         cp -r html/* $pkgdir/usr/share/scid/html
  81.        
  82.         # Chess engines
  83.         cd engines/
  84.         cp phalanx/phalanx $pkgdir/usr/bin
  85.         cp toga/src/fruit $pkgdir/usr/bin
  86.         install -Dm666 phalanx/eco.phalanx $pkgdir/usr/share/scid/engines/phalanx/eco.phalanx
  87.         install -m 644  phalanx/pbook.phalanx $pkgdir/usr/share/scid/engines/phalanx
  88.        
  89.         # Fonts
  90.         cd ..
  91.         cp fonts/{ScidChessStandard,ScidChessTraveller}.ttf $pkgdir/usr/share/fonts/truetype/Scid
  92.        
  93.         #Spelling and ECO
  94.         cp scid.eco $pkgdir/usr/share/scid/share/scid/data/
  95.         cp spelling.ssp $pkgdir/usr/share/scid/share/scid
  96.        
  97.         # Desktop icon
  98.         install -Dm644 icons/scid.png $pkgdir/usr/share/pixmaps/scid.png
  99.         install -Dm644 $srcdir/scid_vs_pc.desktop $pkgdir/usr/share/applications/scid_vs_pc.desktop
  100.  
  101. }
clone this paste RAW Paste Data