1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: Dan McGee <dan@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
4 # Contributor: Jason Chu <jason@archlinux.org>
9 pkgdesc="A developers tool for browsing program code"
11 url="http://cscope.sourceforge.net/"
13 depends=('ncurses' 'sh')
14 source=("https://sourceforge.net/projects/cscope/files/cscope/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
15 sha512sums=('f3b95da5eb5c036cd39215785990c7cce7ce7b8eda4b18e60792e70d01ffb63809ce32ace310a9aefd88e6761c1609039ccfab0e8e49f81730bc1630babbcb80')
18 cd "${srcdir}/${pkgname}-${pkgver}"
19 sed -i 's|/usr/local/lib/cs|/usr/lib/cs|' contrib/ocs
21 ./configure --prefix=/usr
26 cd "${srcdir}/${pkgname}-${pkgver}"
27 make DESTDIR="${pkgdir}" install
29 install -d "${pkgdir}"/usr/lib/cs
30 install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
33 install -Dm644 xcscope.el "${pkgdir}"/usr/share/emacs/site-lisp/xcscope.el
34 install -m755 cscope-indexer "${pkgdir}"/usr/bin