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

pacmanager

By: a guest on Dec 17th, 2013  |  syntax: None  |  size: 2.65 KB  |  views: 56  |  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. # Contributor: jose <jose1711 [at] gmail (dot) com>
  2. # Maintainer: vwyodajl <donjuansjiz   GmaIL   com>
  3. ### I AM ONLY THE PACKAGER, NOT THE DEVELOPER
  4. ### Please ask support questions about this software in one of:
  5. ###   1) The AUR comments; OR
  6. ###   2) Upstream forums/maillist etc; OR
  7. ###   3) The ArchLinux forums
  8. ### I do not always know enough about the software itself, or don't have the
  9. ### time to promptly respond to direct emails.
  10. ### If you have found a problem with the package/PKGBUILD (as opposed to
  11. ### the software) then please do email me or post an AUR comment.
  12.                      
  13. pkgname=pacmanager    
  14. pkgver=4.5.3.3        
  15. pkgrel=1              
  16. pkgdesc="Perl/GTK Gnome replacement for SecureCRT/Putty"
  17. arch=('i686' 'x86_64')
  18. url="http://sites.google.com/site/davidtv/"
  19. license=("GPL-3")    
  20. source=("https://sourceforge.net/projects/pacmanager/files/pac-4.0/pac-${pkgver}-all.tar.gz")
  21. depends=("perl-gtk2-ex-simple-list" "perl-expect" "perl-io-stty" "perl-yaml" "glade-perl" "gconf-perl" "perl-crypt-cbc" "perl-crypt-blowfish" "perl-net-arp" "perl-socket6" "uuid" "perl-freezethaw" "vte" "perl-gnome2-vte" "perl-gtk2-sourceview2" "perl-crypt-rijndael")
  22. optdepends=('tightvnc' 'rdesktop' 'openssh' 'perl-gtk2-appindicator')
  23. md5sums=('4b4342fb28a4c3f4dba119801e901df5')
  24.                      
  25. build() {            
  26.   # some patching needed
  27.   cd $srcdir/pac/lib  
  28.   sed -i -e '/^require.*Vte.pm/s/.*/use Gnome2::Vte;/' -e '/Could not load Gnome2::Vte Perl/d' PACTerminal.pm
  29.   rm -r ex/vte32 ex/vte64 ex/vteARM
  30.   cd $srcdir
  31.   find . -type f -exec sed -i 's%/bin/grep%/usr/bin/grep%g' '{}' \;
  32. }                    
  33.                      
  34. package() {          
  35.   cd $srcdir/pac      
  36.   mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin}
  37.   cp -af lib "$pkgdir"/usr/share/pacmanager/
  38.   install -D -m 644 res/*png $pkgdir/usr/share/pacmanager/res
  39.   install -D -m 644 res/*jpg $pkgdir/usr/share/pacmanager/res
  40.   install -D -m 644 res/*glade $pkgdir/usr/share/pacmanager/res
  41.   install -D -m 755 utils/pac_from_mcm.pl $pkgdir/usr/share/pacmanager/utils/pac_from_mcm.pl
  42.   install -D -m 755 utils/pac_from_putty.pl $pkgdir/usr/share/pacmanager/utils/pac_from_putty.pl
  43.   install -D -m 755 pac $pkgdir/usr/share/pacmanager/pac
  44.   install -D -m 644 README $pkgdir/usr/share/pacmanager/README
  45.   install -D -m 644 res/pac.1 $pkgdir/usr/share/man/man1/pac.1
  46.   install -D -m 644 res/pac.yml $pkgdir/usr/share/pacmanager/res/pac.yml
  47.   install -D -m 644 res/pac64x64.png ${pkgdir}/usr/share/pixmaps/pac.png && \
  48.   install -D -m 644 res/pac.desktop ${pkgdir}/usr/share/applications/pac.desktop
  49.   ln -s /usr/share/pacmanager/pac ${pkgdir}/usr/bin/pac
  50. }
clone this paste RAW Paste Data