db-move: moved evolution from [testing] to [extra] (x86_64)
[arch-packages.git] / cscope / trunk / PKGBUILD
blob3185d2ede96ae9042a067bf8ecb8f693673ba8d4
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>
6 pkgname=cscope
7 pkgver=15.9
8 pkgrel=2
9 pkgdesc="A developers tool for browsing program code"
10 arch=('x86_64')
11 url="http://cscope.sourceforge.net/"
12 license=('BSD')
13 depends=('ncurses' 'sh')
14 source=("https://sourceforge.net/projects/cscope/files/cscope/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
15 sha512sums=('f3b95da5eb5c036cd39215785990c7cce7ce7b8eda4b18e60792e70d01ffb63809ce32ace310a9aefd88e6761c1609039ccfab0e8e49f81730bc1630babbcb80')
17 build() {
18         cd "${srcdir}/${pkgname}-${pkgver}"
19         sed -i 's|/usr/local/lib/cs|/usr/lib/cs|' contrib/ocs
21         ./configure --prefix=/usr
22         make
25 package() {
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
32         cd contrib/xcscope
33         install -Dm644 xcscope.el "${pkgdir}"/usr/share/emacs/site-lisp/xcscope.el
34         install -m755 cscope-indexer "${pkgdir}"/usr/bin