corvinusz

Untitled

Aug 2nd, 2011
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Piotr Beling <qwak@stud.ics.p.lodz.pl>
  2.  
  3. pkgname=dealer
  4. pkgver=20040530
  5. pkgrel=3
  6. arch=(i686 x86_64)
  7. pkgdesc="generate bridge cards game hands for partnerships bidding training or for generating statistics that can be used to design conventions, or win postmortems"
  8. url="http://www.xs4all.nl/~henku/html/dealer/dealer.html"
  9. source=(http://ftp.de.debian.org/debian/pool/main/d/dealer/dealer_0.${pkgver}.orig.tar.gz
  10. http://ftp.de.debian.org/debian/pool/main/d/dealer/dealer_0.${pkgver}-3.diff.gz)
  11. license=('GPL')
  12. depends=('perl')
  13.  
  14. build() {
  15. cd $startdir/src/dealer || return 1
  16. patch -p1 < ../dealer_0.${pkgver}-3.diff
  17. make || return 1
  18. local destdir=$startdir/pkg/usr/bin
  19. install -D -m755 dealer $destdir/dealer || return 1
  20. install -D -m755 Post_Processors/pbn_to_ascii.pl $destdir/dealer.pbn_to_ascii.pl || return 1
  21. install -D -m755 Pre_Processors/dpp $destdir/dealer.dpp || return 1
  22. install -D -m644 Pre_Processors/Dist.pm $startdir/pkg/usr/lib/perl5/current/Dist.pm || return 1
  23. install -d $startdir/pkg/usr/share/doc/dealer || return 1
  24. cp -R ./Manual $startdir/pkg/usr/share/doc/dealer/ || return 1
  25. gzip -c ./dealer.6 > ./dealer.6.gz
  26. install -D ./dealer.6.gz $startdir/pkg/usr/share/man/man6/dealer.6.gz || return 1
  27. gzip -c ./dealer.dpp.6 > dealer.dpp.6.gz
  28. install -D ./dealer.dpp.6.gz $startdir/pkg/usr/share/man/man6/dealer.dpp.6.gz || return 1
  29. }
  30. md5sums=('991c9b73b7ebc1fb87b5e876a7d72797'
  31. 'd5f0db74bb857c97f31684f7c5055374'
  32. )
RAW Paste Data