# Maintainer: Natanael Copa pkgname=newt pkgver=0.52.23 pkgrel=1 pkgdesc="Redhat's Newt windowing toolkit development files" options="!check" # No testsuite url="https://pagure.io/newt/" arch="all" license="LGPL-2.0-only" makedepends="slang-dev popt-dev python3-dev ncurses-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py3-$pkgname:py3" source="https://releases.pagure.org/newt/newt-$pkgver.tar.gz fix-includes.patch " prepare() { sed -i -e 's:-lslang:-lslang -lncurses:g' \ -e 's:instroot:DESTDIR:g' Makefile.in } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --without-tcl \ --disable-nls make RPM_OPT_FLAGS="$CFLAGS" } package() { make DESTDIR="$pkgdir" prefix="/usr" RPM_OPT_FLAGS="ERROR" install rm -f "$pkgdir"/usr/lib/*.a } py3() { pkgdesc="Python3 bindings for Newt windowing toolkit" depends="$pkgname=$pkgver-r$pkgrel python3" amove '/usr/lib/python*' } sha512sums=" c845d03946f72a6b46301152d7dc308f71d17b03d255d73d02ea7deb5392e22522dc8504f941fcffe5309c6c10f1b56742dac8585a16b0dc7e0c463f18871dda newt-0.52.23.tar.gz ce53446eb587b79790f12f806f02999568cb49067520813ab146d1f16c71f009e86ab72d08666e483b550fdae3332b673935b8aa1a14b02f5273217fb5404611 fix-includes.patch "