# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

# Note: This is related to unrar-free on AUR.  If AUR:unrar-free comes
# to Parabola, it should be as "gna-unrar-cvs", as the AUR package
# builds the latest version from CVS (2007; 0.0.1 is from 2004).

_pkgname=unrar
pkgname=gna-unrar
pkgver=0.0.1
url=(http://home.gna.org/unrar/)
license=(GPL)
source=(http://download.gna.org/$_pkgname/$_pkgname-$pkgver.tar.gz)
md5sums=('ac284a6739e3b8c794e7f9e8c20ed8f8')

pkgrel=1
arch=(i686 x86_64)

provides=(unrar)
replaces=(unrar)
conflicts=(unrar)

build() {
	cd "$srcdir/$_pkgname-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$_pkgname-$pkgver"
	make install DESTDIR="$pkgdir"
}