summaryrefslogtreecommitdiff
path: root/repo/newt/newt.xibuild
blob: 314d0328b731fab843c6ec14e839c28cf7cfcabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

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

PKG_VER=0.52.21
SOURCE=https://releases.pagure.org/newt/newt-$PKG_VER.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 &&
    make
}

package () {
    make DESTDIR=$PKG_DEST install 
}