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
# Maintainer: Lucas De Marchi <[email protected]>
# Contributor: Matthias Meulien [email protected]
# Contributor: Alain Kalker <a.c.kalker at gmail dot com>

pkgname=global
pkgver=6.2.7
pkgrel=1
pkgdesc="A source code tag system"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/global/"
license=('GPL')
depends=('libltdl')
optdepends=('idutils' 'perl' 'ctags')
options=(!emptydirs)
install=global.install
source=(http://tamacom.com/global/$pkgname-$pkgver.tar.gz)

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr --with-exuberant-ctags=/usr/bin/ctags
	make
}

check() {
	cd "$srcdir/$pkgname-$pkgver"
	make -k check
}

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

	install -d "$pkgdir/usr/share/emacs/site-lisp"
	ln -s ../../gtags/gtags.el "$pkgdir/usr/share/emacs/site-lisp/gtags.el"
}

md5sums=('415b6fdbbc22cb9a7a9963d7b4207825')
sha256sums=('91840808d2609135fbeed8bfae62bd75d75f4f411f52a2ebba9817f3272822b7')