summaryrefslogtreecommitdiff
path: root/repo/system/newt.xibuild
blob: 2808930be1aa1fdccd34fae41cab504e4d2f7c1b (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/bash

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 
}