### this file is sourced not run
PKGVER=5.6.1
PKGBUILD=1
PKGARCH=x86_64

# BLFS 8.2
TARBALL=rarlinux-x64-$PKGVER.tar.gz
MD5SUM=15e81fad99e9588eb133af60c659a2b3
SRC_URL=http://www.rarlab.com/rar/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="rar: rar $PKGVER (File compressor)
rar: 
rar: Linux version of the popular WinRAR compressor. Command-line only.
rar:
rar: Note: This is re-packaged from the official binary from RAR labs.
rar:
rar: http://www.rarlabs.com/
rar:
rar: 
rar: 
rar: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/rar*
	
	# default install
	make install PREFIX=/usr &&

	# cleanup and docs
	rm /usr/bin/unrar &&  # unrar comes in its own package
	mkdir -p /usr/share/doc/rar-$PKGVER &&
	install -m644 *.txt /usr/share/doc/rar-$PKGVER &&
	
	pkg_build_slackdesc
}


