blob: 723dc85c554c5d0fa9b53aa43903d8265695829b (
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
|
# 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=5.9.20210620.0
_realver="p$pkgver"
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 python3"
makedepends="autoconf automake pkgconf py3-docutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/universal-ctags/ctags/archive/$_realver.tar.gz"
builddir="$srcdir"/$pkgname-$_realver
# secfixes:
# 5.8-r5:
# - CVE-2014-7204
prepare() {
default_prepare
./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="
6127dd6a9eb02240fd244eb2bcc5c1ca895bf1cc23f78b7b8dea14033aca6c50687b6a5680076d0a353d355c3f086e43d6e87dfa6c6c3663b1f685f75915a88b ctags-5.9.20210620.0.tar.gz
"
|