|
root / base / unibilium
unibilium Plain Text 68 lines 2.2 KB
 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
#!/bin/sh
# Build script for unibilium (autotools, Template A variant + autoreconf).
#
# GOTCHA (1b-2): the release tarball ships configure.ac + a hand-written
# Makefile.in (no Makefile.am, no pre-generated `configure`) - must
# autoreconf before the usual libtool-fix + configure steps, same shape as
# base/x11vnc's autoreconf gotcha. autoreconf pulls in its OWN fresh
# config.sub/config.guess (coral's pre-build copy is a no-op here since
# neither file existed in $SRCDIR yet), so they must be re-copied
# post-autoreconf.
set -e
cd "$SRCDIR"

export AUTOCONF=/usr/bin/autoconf
export AUTOHEADER=/usr/bin/autoheader
export ACLOCAL=/usr/bin/aclocal
export AUTOM4TE=/usr/bin/autom4te
export LIBTOOLIZE=/usr/bin/libtoolize

autoreconf -v --install

cp -f /usr/share/autoconf/build-aux/config.sub config.sub 2>/dev/null || true
cp -f /usr/share/autoconf/build-aux/config.guess config.guess 2>/dev/null || true

# MANDATORY libtool fix (Template A): unmatched OS in libtool's
# dynamic-linker case falls through to static-only.
if [ -f configure ]; then
    sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure
fi

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="${CFLAGS} -I$PREFIX/include -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS"
export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# unibilium - terminfo parser and utility functions (neovim/libtermkey)
# https://github.com/neovim/unibilium

[package]
name = "unibilium"
version = "2.1.2"
release = 1
description = "Terminfo parser library, without any curses dependencies"
url = "https://github.com/neovim/unibilium"
license = "LGPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = []
build = []

[[source]]
file = "unibilium-2.1.2.tar.gz"
urls = ["https://github.com/neovim/unibilium/archive/refs/tags/v2.1.2.tar.gz"]
checksum = "370ecb07fbbc20d91d1b350c55f1c806b06bf86797e164081ccc977fc9b3af7a"

[build]
parallel = true