blob: 34f3d38452705625623c19c614d13ec83fcc8930 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
# Maintainer: Pau Espin Pedrol <pespin@espeweb.net>
pkgname=titan-git
_pkgname=titan.core
pkgver=8.1.1.r40.g6be5a7f23
pkgrel=1
pkgdesc="TTCN3 test automation platform"
arch=('i686' 'x86_64')
url="https://projects.eclipse.org/projects/tools.titan"
license=('custom')
groups=('devel')
makedepends=(
'flex'
'bison'
'git'
'perl'
)
depends=(
'expect'
'libedit'
'libxml2'
'ncurses'
'openssl'
'jdk8-openjdk'
)
source=(git+https://gitlab.eclipse.org/eclipse/titan/titan.core.git
titan.profile)
md5sums=('SKIP'
'ecccd5d48359f5f0bdd81c8cc036e806')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
# Currently we cannot build even old versions due to broken dependencies in
# the TITAN's hand-written Makefiles. Building the 'dep' target first helps
# to overcome the majority of them, but it still does not compile due to
# various compilation errors. Disabling 'buildflags' and 'makeflags' helps.
# See also https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/595.
options=(!lto !buildflags !makeflags)
prepare() {
cd $srcdir/$_pkgname
echo "TTCN3_DIR := /usr/ttcn3" >> Makefile.personal
echo "JDKDIR := /usr/lib/jvm/java-8-openjdk" >> Makefile.personal
}
build() {
cd $srcdir/$_pkgname
make dep
make
}
package() {
cd $srcdir/$_pkgname
make \
TTCN3_DIR=$pkgdir/usr/ttcn3 \
ETCDIR=$pkgdir/usr/ttcn3/etc \
MANDIR=$pkgdir/usr/share/man \
DOCDIR=$pkgdir/usr/share/doc/titan \
HELPDIR=$pkgdir/usr/share/doc/titan/html \
DEMODIR=$pkgdir/usr/share/doc/titan/demo \
install
# Fix reference to $pkgdir in the demo Makefile
sed -i "s#TTCN3_DIR = .*#TTCN3_DIR = /opt/eclipse-titan#" \
"$pkgdir/usr/share/doc/eclipse-titan/demo/Makefile"
install -D $srcdir/titan.profile \
$pkgdir/etc/profile.d/titan.sh
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|