summaryrefslogtreecommitdiff
path: root/repo/system/newt/newt.xibuild
blob: 6696f55429f283ecd08d8cb556946453f422dfb8 (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
#!/bin/sh

MAKEDEPS="make tcl python"
DEPS="gmp libxcrypt popt slang python tcl"

PKG_VER=0.52.21
SOURCE=https://releases.pagure.org/newt/newt-0.52.21.tar.gz
DESC="Not Erik's Windowing Toolkit - text mode windowing with slang"

build () {
    sed -e 's/^LIBNEWT =/#&/'                   \
    -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
    -e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g'    \
    -i Makefile.in                          &&

    ./configure --prefix=/usr           \
                --with-gpm-support      \
                --with-python=python3.10 &&
    make
}

package () {
    make DESTDIR=$PKG_DEST install 
}