APKBUILD 1.54 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
5
pkgrel=4
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"
14 15
source="http://prdownloads.sourceforge.net/ctags/$pkgname-$pkgver.tar.gz
	error-format.patch"
Michael Mason's avatar
Michael Mason committed
16

Fabian Affolter's avatar
Fabian Affolter committed
17 18 19
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
20 21 22 23 24
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
Fabian Affolter's avatar
Fabian Affolter committed
25
}
Michael Mason's avatar
Michael Mason committed
26

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

package() {
	cd "$_builddir"
42
	mkdir -p "$pkgdir"/usr/bin
Fabian Affolter's avatar
Fabian Affolter committed
43
	make -j1 \
44
		DEST_CTAGS="$pkgdir"/usr/bin \
Fabian Affolter's avatar
Fabian Affolter committed
45 46
		mandir="$pkgdir"/usr/share/man \
		install || return 1
Michael Mason's avatar
Michael Mason committed
47 48
}

49 50 51 52 53 54
md5sums="c00f82ecdcc357434731913e5b48630d  ctags-5.8.tar.gz
f0b35e99098aba05128c12859fa44e9e  error-format.patch"
sha256sums="0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99c7  ctags-5.8.tar.gz
30339f93cdf0da56fe746703330332d0f345a677c38025c4be6d56d56b82414c  error-format.patch"
sha512sums="981912cd335978cde22864e977947fc75326572fb29518e559cc4a8ac1edc84b3604165218a666e36353f17da4f89f8e967acdb88696f816748eb946d79eaa15  ctags-5.8.tar.gz
bc861fa7fe401e5f5845c39d8ec714268898fafcd76afa54bebfc7965d4ef66e227e7bab80733c8f95a79a131b05fbdd4024d05139f2f9bd67914ff4c9e0e9b9  error-format.patch"