1 # Maintainer: TuxSpirit <tuxspirit AT archlinux DOT fr>
6 pkgdesc="A command-line port of the rar compression utility (FINAL VERSION 28 May 2011)"
8 url="http://www.rarlab.com"
12 backup=('etc/rarfiles.lst')
14 if [ "$CARCH" = "i686" ]; then
15 source=(http://www.rarlab.com/rar/rarlinux-$pkgver.tar.gz
17 md5sums=('7c6bb547dadd14ef606dd2b4071d28f3'
18 '7c96e7bd785889cac7717a9da82354b3')
19 elif [ "$CARCH" = "x86_64" ]; then
20 source=(http://www.rarlab.com/rar/rarlinux-x64-$pkgver.tar.gz
22 md5sums=('09ed30c0935ffb01177269a50628b4eb'
23 '7c96e7bd785889cac7717a9da82354b3')
29 mkdir -p ${pkgdir}/usr/share/doc/${pkgname} || return 1
30 mkdir -p ${pkgdir}/usr/share/man/man1 || return 1
34 install -Dm755 rar ${pkgdir}/usr/bin/rar || return 1
35 #install -Dm755 unrar ${pkgdir}/usr/bin/unrar || return 1
36 install -Dm755 rar_static ${pkgdir}/usr/bin/rar_static || return 1
38 install -Dm755 default.sfx ${pkgdir}/usr/lib/default.sfx || return 1
40 install -Dm644 rarfiles.lst ${pkgdir}/etc/rarfiles.lst || return 1
42 install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
44 install -m644 {*.htm,*.txt} ${pkgdir}/usr/share/doc/${pkgname} || return 1
46 install -m644 ${srcdir}/rar.1 ${pkgdir}/usr/share/man/man1/rar.1 || return 1