aboutsummaryrefslogtreecommitdiffstats
path: root/testing/global/APKBUILD
blob: 0609ad07d0a2c25e21eeb41e79684ebd195ea5de (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
42
43
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=global
pkgver=6.5.4
pkgrel=0
pkgdesc="A source code tag system"
url="http://www.gnu.org/software/global"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="libltdl perl"
install=""
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="a6693598b4cd0890c648aa2cbfa92fe7  global-6.5.4.tar.gz"
sha256sums="af16e0a686a46f759156cb685e25f345680703f43f93af1ce8d834caaf541da6  global-6.5.4.tar.gz"
sha512sums="fe574b4b5fc0a289e500baffc90f57845653e874ba0d3271c1a17a92c91ccbfd5526517eab08d7a79a147687190ce4ed0a3524acb2bdd88eedaeeaa3221c8c0f  global-6.5.4.tar.gz"