Package Details: rar 5.3.0-1

Git Clone URL: https://aur.archlinux.org/rar.git (read-only)
Package Base: rar
Description: A command-line port of the rar compression utility
Upstream URL: http://www.rarlab.com
Keywords: rar unrar
Licenses: custom
Conflicts: rar-beta, unrar
Provides: unrar
Submitter: None
Maintainer: taylorchu (FadeMind)
Last Packager: FadeMind
Votes: 662
Popularity: 3.763742
First Submitted: 2008-10-15 21:38
Last Updated: 2016-02-16 11:38

Required by (83)

Sources (4)

Latest Comments

rob2uk commented on 2016-09-04 16:40

Updated PKGBUILD here:

http://pastebin.com/fCRyLs3t

rob2uk commented on 2016-09-04 16:28

rar is now at 5.4.0, so this package is now out of date

FadeMind commented on 2016-02-15 13:20

Current version at 20160215
RAR 5.30 for Linux
RAR 5.30 for Linux x64

AUR was updated and improved (provides unrar) at 2016-02-13.

So please don't mark this OUT-OF-DATE.

Det commented on 2015-02-07 17:18

That doesn't require even bumping the pkgrel, by the way.

WorMzy commented on 2015-02-06 15:33

Please enclose your srcdir and pkgdir variables in double quotes, to prevent problems with paths with spaces.

Det commented on 2015-01-21 12:48

Now that with pacman 4.2.0 [1] / AUR 3.5.0 [2] there is support for architecture-specific sources [3], you could use:

source_i686=(http://www.rarlab.com/rar/rarlinux-$pkgver.tar.gz)
source_x86_64=(http://www.rarlab.com/rar/rarlinux-x64-$pkgver.tar.gz)
md5sums_i686=('11043888e0322a9035e2f24e4b248dc5')
md5sums_x86_64=('82d9266a8fcc40636057fa1cdf62e398')

Instead of:

if [ "$CARCH" = "i686" ]; then
source=(http://www.rarlab.com/rar/rarlinux-$pkgver.tar.gz)
md5sums=('11043888e0322a9035e2f24e4b248dc5')
elif [ "$CARCH" = "x86_64" ]; then
source=(http://www.rarlab.com/rar/rarlinux-x64-$pkgver.tar.gz)
md5sums=('82d9266a8fcc40636057fa1cdf62e398')
fi

The AUR "Sources" section will then look like so: https://aur.archlinux.org/packages/google-chrome/

[1] = https://projects.archlinux.org/pacman.git/tree/NEWS
[2] = https://lists.archlinux.org/pipermail/aur-dev/2014-November/002968.html
[3] = https://wiki.archlinux.org/index.php/PKGBUILD#source

vagorafaelino commented on 2014-12-03 02:06

New version is out: 5.2.0

vagorafaelino commented on 2014-12-03 01:59

New version is out: 5.2

sparse commented on 2014-11-01 20:04

I think there is no need to "provides=( 'rar' )"

sparse commented on 2014-11-01 20:03

I think there is no nedd to "provides=( 'rar' )"

lolilolicon commented on 2014-07-05 09:27

rar manpage updated to 5.10 http://ix.io/dgN
pod2man -c "RAR User's Manual" -n "RAR" -r "$pkgname $pkgver" -s 1 rar.1.pod rar.1

rtfreedman commented on 2013-12-03 17:12

I think it's worthwhile to add rar.txt and whatsnew.txt to the package.

metak commented on 2013-12-03 09:08

Version 5.01 available

lolilolicon commented on 2013-09-20 02:57

I my own version of the PKGBUILD, I do not install unrar, because it seems to me the rar binary does everything unrar does. Am I correct?
I also echo hbdee's feeling that the unrar in the repos built from source should be preferred over the binary shipped in this tarball.

hbdee commented on 2013-09-19 20:19

@graysky - I disagree for the reason in my previous post(I use kdeutils-ark so a broken unrar is no good for me) and because official unrar pkg is built from source and maintained by giovanni, which I feel is better than the unrar binary provided by the tarball this packages uses. Maybe a better option is to have this pkg build unrar from source as a split pkg. This way it can conflict with the official pkg and still give the user the choice of an officially maintained pkg that is stable or the aur package that may or may not be stable. However, I feel like adaptee won't be willing to do this.

graysky commented on 2013-09-19 19:54

@hbdee - Hmm... perhaps this pkg should conflict with unrar from the repos...

hbdee commented on 2013-09-19 19:42

@graysky - Shouldn't unrar be commented out because it's in the official repos? This way the user can decide which version they want to use, for example https://bugs.archlinux.org/task/35096 forces me to use the official pkg because they downgraded it to work around the breakage. I agree with everything else you wrote.

lolilolicon commented on 2013-09-06 01:18

Here I share with you rar(1) manpage for rar 5.00 converted from Rar.txt (extracted from WinRAR Installer): http://ix.io/7Sy
Save it as rar.1.pod, and convert to manpage like this:
pod2man -c "RAR User's Manual" -n "RAR" -r "$pkgname $pkgver" -s 1 rar.1.pod rar.1

graysky commented on 2013-09-05 16:55

* No need for the /bin/true in the build function... in fact, I believe you can omit the build function entirely.
* Why do you have this replace rar-beta? It should conflict with rar-beta, no?
* Why is unrar commented out?
* No need for the mkdir line for the manpage, just install rar.1 with -Dm644

graysky commented on 2013-09-05 16:51

* No need for the /bin/true in the build function... in fact, I believe you can omit the build function entirely.
* Why do you have this replace rar-beta? It should conflict with rar-beta, no?
* Why is unrar commented out?

scorici commented on 2013-09-05 13:21

Remove the md5sum at the end:
md5sums=('7203cd3f3f01acd3b62d8d377de59f2e'
'9d46739d2c89b239fe1158d95cdb8db5')
and replace the updated md5sums for both i686 and x84_64 like this:
if [ "$CARCH" = "i686" ]; then
source=(http://www.rarlab.com/rar/rarlinux-$pkgver.tar.gz
rar.1)
md5sums=('cc80d05d868e7a07f79ad4d4f0fab265'
'9d46739d2c89b239fe1158d95cdb8db5')
elif [ "$CARCH" = "x86_64" ]; then
source=(http://www.rarlab.com/rar/rarlinux-x64-$pkgver.tar.gz
rar.1)
md5sums=('7203cd3f3f01acd3b62d8d377de59f2e'
'9d46739d2c89b239fe1158d95cdb8db5')
fi

holyArch commented on 2012-10-17 21:32

Shame that such useful package does not have a proper PKGBUILD.

holyArch commented on 2012-10-17 21:17

Can someone provide a decent PKGBUILD and share with us?

graysky commented on 2012-09-30 12:56

@adaptee - all of the returns in the PKGBUILD are unneeded and outdated. Again, see the following as an example: http://repo-ck.com/PKG_source/rar/PKGBUILD

R00KIE commented on 2012-09-27 08:37

Why was the man page removed? If it was a mistake you can get it from this package [1].
If the removal was not an accident why is it that you are still creating ${pkgdir}/usr/share/man/man1 ?

[1] https://aur.archlinux.org/packages.php?ID=17443

hav3lock commented on 2012-09-05 18:35

Why, what's wrong with the one I already have up? I'm not trying to be difficult, just so you know, I'm just trying to figure out exactly what is it that is undesirable? (I looked at one of Graysky's PKGBUILDs, but I fail to see how it pertains.)

Det commented on 2012-09-05 17:21

Please use something more like graysky's PKGBUILD, which applies to the standard PKGBUILD pattern.

hav3lock commented on 2012-09-04 07:07

Let me know if anything doesn't work, thanks; you're welcome. :)

hav3lock commented on 2012-09-04 07:04

No problem, updating right now.

jorge_barroso commented on 2012-08-09 19:33

please update rar with the following URL's correspondants to the 4.20 version

i686: http://www.rarlab.com/rar/rarlinux-4.2.0.tar.gz

x86_64:http://www.rarlab.com/rar/rarlinux-x64-4.2.0.tar.gz

thanks pal

graysky commented on 2012-08-08 09:07

Updated to current ARCH standards: http://repo-ck.com/PKG_source/rar/PKGBUILD

mister_playboy commented on 2012-07-15 04:10

Thanks Sarkasper. :)

http://pastebin.com/gtGShh6a

intgr commented on 2012-07-13 23:38

PS: please use pastebin for sending PKGBUILDs. AUR doesn't preserve indentation correctly.

gh0st commented on 2012-07-13 12:52

#PKGBUILD


# Maintainer: TuxSpirit <tuxspirit AT archlinux DOT fr>

pkgname=rar
pkgver=4.2.0
pkgrel=1
pkgdesc="A command-line port of the rar compression utility"
arch=('i686' 'x86_64')
url="http://www.rarlab.com"
license=('custom')
depends=('gcc-libs')
replaces=('rar-beta')
backup=('etc/rarfiles.lst')
provides=('rar')
if [ "$CARCH" = "i686" ]; then
source=(http://www.rarlab.com/rar/rarlinux-$pkgver.tar.gz)
md5sums=('33dd6e01b7c336706ec778776b2151b2')

elif [ "$CARCH" = "x86_64" ]; then
source=(http://www.rarlab.com/rar/rarlinux-x64-$pkgver.tar.gz)
md5sums=('bc319712e998179249494a4eb168af7b')
fi

build() {

mkdir -p ${pkgdir}/usr/share/doc/${pkgname} || return 1
mkdir -p ${pkgdir}/usr/share/man/man1 || return 1

cd ${srcdir}/rar

install -Dm755 rar ${pkgdir}/usr/bin/rar || return 1
#install -Dm755 unrar ${pkgdir}/usr/bin/unrar || return 1
install -Dm755 rar_static ${pkgdir}/usr/bin/rar_static || return 1

install -Dm755 default.sfx ${pkgdir}/usr/lib/default.sfx || return 1

install -Dm644 rarfiles.lst ${pkgdir}/etc/rarfiles.lst || return 1

install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1

install -m644 {*.htm,*.txt} ${pkgdir}/usr/share/doc/${pkgname} || return 1

#install -m644 ${srcdir}/rar.1 ${pkgdir}/usr/share/man/man1/rar.1 || return 1
}

Unia commented on 2012-06-18 15:24

Easy to update: just change pkgver to 4.2.0 in the PKGBUILD and change the md5sums accordingly (using makepkg -g >> PKGBUILD)

taylorchu commented on 2012-06-15 17:55

4.2 is here

rafaelff commented on 2012-04-15 03:40

@tuxspirit: FYI, no need for "|| return 1", as makepkg knows how to deal with errors.

Anonymous comment on 2012-04-14 19:21

Updated to 4.11 (final version)

holyArch commented on 2012-03-26 09:42

Update needed.

taylorchu commented on 2012-03-07 19:26

taylorchu commented on 2012-03-07 19:26

rar 4.1.1 released. please update

Anonymous comment on 2012-02-02 19:48

Updated to 4.10 (final version)

@fabienwang : thank you for your comment.

fabienwang commented on 2012-01-20 11:45

4.10 available. http://www.rarlab.com/rar/rarlinux-4.1.0.tar.gz

Anonymous comment on 2011-07-06 16:36

Updated to 4.01 (final version)

Anonymous comment on 2011-03-10 09:33

Updated to 4.0 (final version)

Anonymous comment on 2011-03-09 18:03

version 4.00 is out

kvasthval commented on 2010-10-13 12:21

Thanks and sorry! :-)

Anonymous comment on 2010-10-12 18:25

Fixed the problem with backup=('/etc/rarfiles.lst')

Please sending email for corrections. Thanks!

kvasthval commented on 2010-10-12 15:42

Flagging as out-of-date - please fix this problem, it won't take more than a few seconds.

Anonymous comment on 2010-08-31 01:29

solved here too

Anonymous comment on 2010-08-04 02:42

yes,

replacing to 'etc/rarfiles.lst' solved the problem.

Anonymous comment on 2010-08-04 01:45

PKGBUID: Line 12

backup=('/etc/rarfiles.lst')

should be

backup=('etc/rarfiles.lst') ?

Anonymous comment on 2010-07-05 17:30

Here is simple solution. Download latest RAR package from this repo:
http://repo.archlinux.fr/x86_64/

And install with pacman -U

Anonymous comment on 2010-07-03 17:50

Same here, Arch 64bit.
How to fix this?
Is there some way to correct this in PKGBUILD or something?

killajoe commented on 2010-07-03 17:22

yes for me too under arch64

Anonymous comment on 2010-06-24 21:38

Invalid backup entry : /etc/rarfiles.lst