blob: ba5658887732f42aefa5ce7d4cae8e873e25ad45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=global
pkgver=6.5.5
pkgrel=0
pkgdesc="A source code tag system"
url="http://www.gnu.org/software/global"
arch="all"
license="GPL"
depends=""
makedepends="libltdl perl"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/global/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--localstatedir=/var \
--with-exuberant-ctags=/usr/bin/ctags \
--disable-gtagscscope \
|| return 1
make check || return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir/" install || return 1
install -d "$pkgdir"/usr/share/emacs/site-lisp
install -d "$pkgdir"/usr/share/vim/vimfiles/plugin
mv "$pkgdir"/usr/share/gtags/gtags.el "$pkgdir"/usr/share/emacs/site-lisp/gtags.el
mv "$pkgdir"/usr/share/gtags/gtags.vim "$pkgdir"/usr/share/vim/vimfiles/plugin/gtags.vim
mv "$pkgdir"/usr/share/gtags/gtags-cscope.vim "$pkgdir"/usr/share/vim/vimfiles/plugin/gtags-cscope.vim
}
md5sums="ee1c0ac678385fed77c90369a1ccfe65 global-6.5.5.tar.gz"
sha256sums="bc5b42a2c58d1570ff6b6acf7479c3e1609fe0ec8b44e5baa5290dc47148cf7b global-6.5.5.tar.gz"
sha512sums="5f8d09710f534f0ebfcdabb85e3a094402a6ef56b800d94eb5ba546b3aa5cbdeb664fa37edcd46530b34a734fc05a1271e4abc8bb13e24db2c5cb2dbb46a4481 global-6.5.5.tar.gz"
|