summaryrefslogtreecommitdiff
path: root/sources/ncurses/ncurses.spec
blob: c5918ca8ea7cc10c4a785b11150dc11570e63a53 (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
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6"
SRC_NAME="ncurses"
SRC_URL="https://invisible-island.net/archives/ncurses/ncurses-6.5.tar.gz"
SRC_VERSION="6.5"

build() {
    tar xf ../$SRC_FILENAME
    cd ncurses-*/
    ./configure $TT_AUTOCONF_COMMON \
        --with-cxx-shared \
        --with-shared \
        --without-ada \
        --without-normal \
        --without-tests
    make -O -j $TT_PROCS
}

clean() {
    rm -rf ncurses-*/
}

package() {
    cd ncurses-*/
    make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
    # NOTE: These symlinks exist for compatibility's sake, since some libraries
    #       will only look for "ncurses" and not "ncursesw". ~ahill
    ln -s libncursesw.so $TT_INSTALLDIR/lib/libncurses.so
    ln -s libncurses++w.so $TT_INSTALLDIR/lib/libncurses++.so
}