This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

rar-4.2.0

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 1.38 KB  |  views: 119  |  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. # Maintainer: TuxSpirit <tuxspirit AT archlinux DOT fr>
  2.  
  3. pkgname=rar
  4. pkgver=4.2.0
  5. pkgrel=1
  6. pkgdesc="A command-line port of the rar compression utility (FINAL VERSION 14 Jun 2012)"
  7. arch=('i686' 'x86_64')
  8. url="http://www.rarlab.com"
  9. license=('custom')
  10. depends=('gcc-libs')
  11. replaces=('rar-beta')
  12. backup=('etc/rarfiles.lst')
  13. provides=('rar')
  14. if [ "$CARCH" = "i686" ]; then
  15.     source=(http://www.rarlab.com/rar/rarlinux-$pkgver.tar.gz)
  16.     md5sums=('33dd6e01b7c336706ec778776b2151b2')
  17.      
  18. elif [ "$CARCH" = "x86_64" ]; then
  19.     source=(http://www.rarlab.com/rar/rarlinux-x64-$pkgver.tar.gz)
  20.     md5sums=('bc319712e998179249494a4eb168af7b')
  21. fi
  22.  
  23. build() {
  24.  
  25.   mkdir -p ${pkgdir}/usr/share/doc/${pkgname} || return 1
  26.   mkdir -p ${pkgdir}/usr/share/man/man1 || return 1
  27.  
  28.   cd ${srcdir}/rar
  29.  
  30.   install -Dm755 rar ${pkgdir}/usr/bin/rar || return 1
  31.   #install -Dm755 unrar ${pkgdir}/usr/bin/unrar || return 1
  32.   install -Dm755 rar_static ${pkgdir}/usr/bin/rar_static || return 1
  33.  
  34.   install -Dm755 default.sfx ${pkgdir}/usr/lib/default.sfx || return 1
  35.  
  36.   install -Dm644 rarfiles.lst ${pkgdir}/etc/rarfiles.lst || return 1
  37.  
  38.   install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
  39.  
  40.   install -m644 {*.htm,*.txt} ${pkgdir}/usr/share/doc/${pkgname} || return 1
  41.  
  42.   #install -m644 ${srcdir}/rar.1 ${pkgdir}/usr/share/man/man1/rar.1 || return 1
  43. }
clone this paste RAW Paste Data