pkgname=newt pkgver=0.52.24 pkgrel=1 pkgdesc="Not Erik's Windowing Toolkit - text mode windowing with slang" arch=('x86_64') url="https://pagure.io/newt" license=('LGPL-2.0-or-later') depends=('gpm' 'popt' 'slang') makedepends=('python') options=('!makeflags') source=(https://releases.pagure.org/newt/${pkgname}-${pkgver}.tar.gz) sha256sums=(5ded7e221f85f642521c49b1826c8de19845aa372baf5d630a51774b544fbdbb) prepare() { cd ${pkgname}-${pkgver} sed -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \ -e '/$(LIBNEWT):/,/rv/ s/^/#/' \ -e 's/$(LIBNEWT)/$(LIBNEWTSH)/g' \ -i Makefile.in } build() { cd ${pkgname}-${pkgver} local configure_args=( --with-gpm-support --with-python=python3.13 ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }