APKBUILD 1.38 KB
Newer Older
1
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
Fabian Affolter's avatar
Fabian Affolter committed
2 3
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
Michael Mason's avatar
Michael Mason committed
4
pkgname=ctags
Natanael Copa's avatar
Natanael Copa committed
5
pkgver=5.8
6
pkgrel=5
Michael Mason's avatar
Michael Mason committed
7 8
pkgdesc="Generator of tags for all types of C/C++ languages"
url="http://ctags.sourceforge.net/"
9
arch="all"
10
license="GPL-2.0"
11
depends=""
Michael Mason's avatar
Michael Mason committed
12
makedepends=""
Fabian Affolter's avatar
Fabian Affolter committed
13 14
install=""
subpackages="$pkgname-doc"
15
source="https://prdownloads.sourceforge.net/ctags/$pkgname-$pkgver.tar.gz
16
	CVE-2014-7204.patch
17
	error-format.patch"
18
builddir="$srcdir"/$pkgname-$pkgver
Michael Mason's avatar
Michael Mason committed
19

20 21 22
# secfixes:
#   5.8-r5:
#     - CVE-2014-7204
Michael Mason's avatar
Michael Mason committed
23

Fabian Affolter's avatar
Fabian Affolter committed
24
build() {
25
	cd "$builddir"
26 27 28 29
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Fabian Affolter's avatar
Fabian Affolter committed
30
		--sysconfdir=/etc \
31 32 33 34
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-external-sort
	make
Fabian Affolter's avatar
Fabian Affolter committed
35 36 37
}

package() {
38
	cd "$builddir"
39
	mkdir -p "$pkgdir"/usr/bin
40
	make -j1 DEST_CTAGS="$pkgdir"/usr/bin \
Fabian Affolter's avatar
Fabian Affolter committed
41
		mandir="$pkgdir"/usr/share/man \
42
		install
Michael Mason's avatar
Michael Mason committed
43 44
}

45
sha512sums="981912cd335978cde22864e977947fc75326572fb29518e559cc4a8ac1edc84b3604165218a666e36353f17da4f89f8e967acdb88696f816748eb946d79eaa15  ctags-5.8.tar.gz
46
7593aa9ca8857b09127a842752d214764734215b42b58c8a44e2a320b21b5a4923dd05a3d14a9053e570f07297d77b3d2fa8f5d41c500e9aadf993413a66be76  CVE-2014-7204.patch
47
bc861fa7fe401e5f5845c39d8ec714268898fafcd76afa54bebfc7965d4ef66e227e7bab80733c8f95a79a131b05fbdd4024d05139f2f9bd67914ff4c9e0e9b9  error-format.patch"