#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=rarcrack
pkgver=0.2
pkgrel=1gv
arch=i486
source=(http://downloads.sourceforge.net/project/rarcrack/rarcrack-0.2/%5BUnnamed%20release%5D/rarcrack-0.2.tar.bz2)
docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "release_notes")
url=http://rarcrack.sourceforge.net/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"rarcrack (crack compressed files passwords)"
"If you forget your password for compressed archive (rar, 7z, zip),"
"rarcrack is the solution. This program uses bruteforce algorithm to"
"find correct password. You can specify wich characters will be used in"
"password generations."
"Warning: Please don't use this program for any illegal things!"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	sed -i "s/-O2/$CFLAGS/" Makefile
	make || return 1
	mkdir -p $startdir/pkg/usr/bin
	cp rarcrack $startdir/pkg/usr/bin/
	chmod 755 $startdir/pkg/usr/bin/rarcrack
}