blob: 32c198a4450d2877a6b01b0f227b402c7ff2e15d (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ctags
pkgver=0_git20191207
_commit=2ebf5b1bed1f8ce2f2cccec66e613cd33bcee571
pkgrel=0
pkgdesc="Generator of tags for all types of C/C++ languages"
url="https://ctags.io/"
arch="all"
license="GPL-2.0-or-later"
checkdepends="diffutils python"
makedepends="autoconf automake pkgconf py3-docutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/universal-ctags/ctags/archive/$_commit.tar.gz"
builddir="$srcdir"/$pkgname-$_commit
# FIXME: Tests curerntly fail on s390x
# See: https://github.com/universal-ctags/ctags/issues/2369
case "$CARCH" in
s390x) options="!check" ;;
esac
# secfixes:
# 5.8-r5:
# - CVE-2014-7204
prepare() {
default_prepare
cd "$builddir"
./autogen.sh
# Fail, likely due to compatibility issues with musl's iconv.
# Alternative solution: Build ctags with --disable-iconv.
rm -r Tmain/input-encoding-option.d \
Tmain/output-encoding-option.d
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-external-sort
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="2e4fe3b3bf77e0456298f398a2e16cb3dd116da2c078e09884b8cd40d182a6cb07b88538713c890517535348fb1d9016b3dca46fa6f6a9b18fe784ec7b18ca30 ctags-0_git20191207.tar.gz"
|