|
root / base / libtermkey
libtermkey Plain Text 40 lines 1.3 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
#!/bin/sh
# Build script for libtermkey (plain Makefile, uses the system GNU libtool
# binary directly - not a generated per-project libtool script). Needs
# base/unibilium built + installed first; the Makefile locates it via
# pkg-config ($(call pkgconfig, ...)), so PKG_CONFIG_PATH must reach
# $PREFIX/lib/pkgconfig.
set -e
cd "$SRCDIR"

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"

gmake -j${JOBS:-1} PREFIX="$PREFIX"
gmake install PREFIX="$PREFIX" DESTDIR="$PKGDIR"
# libtermkey - terminal keyboard entry reading library (neovim TUI input)
# http://www.leonerd.org.uk/code/libtermkey/

[package]
name = "libtermkey"
version = "0.22"
release = 1
description = "Terminal keypress reading library"
url = "http://www.leonerd.org.uk/code/libtermkey/"
license = "MIT"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["unibilium"]
build = ["unibilium"]

[[source]]
file = "libtermkey-0.22.tar.gz"
urls = ["http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.22.tar.gz"]
checksum = "6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600"

[build]
parallel = true