# Contributor: Cliff Free <nucular.limozeen@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=cscope
pkgver=15.8b
pkgrel=1
pkgdesc="Cscope is a developer's tool for browsing source code."
url="http://cscope.sourceforge.net/"
arch="all"
license="BSD"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/cscope/cscope/$pkgver/cscope-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="3ebb9cc5bc814c02edb3e395a48e6fe2f206dd698529582e7df81755b335e8c3f4477ad4e8abcefd16d4d9adfd72981916322756b7060acf38fc82d56cc97fd5  cscope-15.8b.tar.gz"
