APKBUILD 1.18 KB
Newer Older
Fabian Affolter's avatar
Fabian Affolter committed
1 2
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
Michael Mason's avatar
Michael Mason committed
3
pkgname=ctags
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=5.8
Fabian Affolter's avatar
Fabian Affolter committed
5
pkgrel=3
Michael Mason's avatar
Michael Mason committed
6 7
pkgdesc="Generator of tags for all types of C/C++ languages"
url="http://ctags.sourceforge.net/"
8
arch="all"
Fabian Affolter's avatar
Fabian Affolter committed
9
license="GPL2"
10
depends=""
Michael Mason's avatar
Michael Mason committed
11
makedepends=""
Fabian Affolter's avatar
Fabian Affolter committed
12 13
install=""
subpackages="$pkgname-doc"
Michael Mason's avatar
Michael Mason committed
14 15
source="http://prdownloads.sourceforge.net/ctags/$pkgname-$pkgver.tar.gz"

Fabian Affolter's avatar
Fabian Affolter committed
16 17 18 19 20
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}
Michael Mason's avatar
Michael Mason committed
21

Fabian Affolter's avatar
Fabian Affolter committed
22 23
build() {
	cd "$_builddir"
24 25 26 27
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Michael Mason's avatar
Michael Mason committed
28
		--mandir=/usr/share/man \
Fabian Affolter's avatar
Fabian Affolter committed
29
		--sysconfdir=/etc \
30 31
		--infodir=/usr/share/info \
		|| return 1
Michael Mason's avatar
Michael Mason committed
32
	make || return 1
Fabian Affolter's avatar
Fabian Affolter committed
33 34 35 36 37 38 39 40 41 42
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"
	make -j1 \
		DEST_CTAGS="$pkgdir" \
		mandir="$pkgdir"/usr/share/man \
		install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
Michael Mason's avatar
Michael Mason committed
43 44
}

Natanael Copa's avatar
Natanael Copa committed
45
md5sums="c00f82ecdcc357434731913e5b48630d  ctags-5.8.tar.gz"
Fabian Affolter's avatar
Fabian Affolter committed
46 47
sha256sums="0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99c7  ctags-5.8.tar.gz"
sha512sums="981912cd335978cde22864e977947fc75326572fb29518e559cc4a8ac1edc84b3604165218a666e36353f17da4f89f8e967acdb88696f816748eb946d79eaa15  ctags-5.8.tar.gz"