contrib/libnewt/Pkgfile

30 lines
663 B
Plaintext
Raw Normal View History

2019-08-04 16:15:52 +02:00
# Description: a programming library for color text mode
# URL: https://pagure.io/newt
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: slang popt python3
# Optional: tcl
2019-08-04 16:15:52 +02:00
name=libnewt
2023-10-26 07:06:24 +02:00
version=0.52.24
release=2
2019-08-04 16:15:52 +02:00
source=(https://releases.pagure.org/newt/newt-$version.tar.gz)
build() {
cd newt-$version
2022-11-22 18:34:35 +01:00
if prt-get isinst tcl; then
sed -i "s:tcl8.4:tcl8.6:" Makefile.in
echo '#define USE_INTERP_RESULT 1' >> config.h
fi
2019-08-04 16:15:52 +02:00
./autogen.sh
./configure --prefix=/usr --disable-nls
2022-11-22 18:34:35 +01:00
2019-08-04 16:15:52 +02:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/locale
2022-11-22 18:34:35 +01:00
# with python2 around, it populates this weird path
rm -r $PKG/usr/lib/usr || true
2019-08-04 16:15:52 +02:00
}