aboutsummaryrefslogtreecommitdiff
path: root/src/tesserae/core/ncurses.nim
blob: da3cc7e5be5bb23ff611aeb93b7ab7e1256afa66 (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
import .. / .. / lapis

tessera "ncurses":
  source: ""
  patches: @[""]
  dependencies: @[
    "bash",
    "binutils",
    "coreutils",
    "diffutils",
    "gawk",
    "gcc",
    "glibc",
    "grep",
    "make",
    "patch",
    "sed"
  ]
  dependants: @[
    "bash",
    "grub",
    "inetutils",
    "less",
    "procps_ng",
    "psmisc",
    "readline",
    "texinfo",
    "util-linux",
    "vim"
  build: @[
    """
    ./configure --prefix=/usr           \
                --mandir=/usr/share/man \
                --with-shared           \
                --without-debug         \
                --without-normal        \
                --with-cxx-shared       \
                --enable-pc-files       \
                --with-pkg-config-libdir=/usr/lib/pkgconfig
    """,
    "make",
    "make DESTDIR=$PWD/dest install",
    "install -vm755 dest/usr/lib/libncursesw.so.6.5 /usr/lib",
    "rm -v dest/usr/lib/libncursesw.so.6.5",
    """
    sed -e 's/^\#if.*XOPEN.*$/\#if 1/' \
        -i dest/usr/include/curses.h
    """,
    "cp -av dest/* /",
    """
    for lib in ncurses form panel menu ; do
      ln -sfv lib${lib}w.so /usr/lib/lib${lib}.so
      ln -sfv ${lib}w.pc    /usr/lib/pkgconfig/${lib}.pc
    done
    """,
    "ln -sfv libncursesw.so /usr/libcurses.so"
  ]
  result: "libcurses.so"
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.