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