Date: Monday, October 4, 2021 @ 09:42:33 Author: arodseth Revision: 1027269
Remove optional dependency on python2 Modified: libnewt/trunk/PKGBUILD ----------+ PKGBUILD | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-10-04 08:52:37 UTC (rev 1027268) +++ PKGBUILD 2021-10-04 09:42:33 UTC (rev 1027269) @@ -5,7 +5,7 @@ pkgname=libnewt pkgver=0.52.21 -pkgrel=5 +pkgrel=6 _tclver=8.6 pkgdesc="Not Erik's Windowing Toolkit - text mode windowing with slang" arch=(x86_64) @@ -12,30 +12,25 @@ url='https://pagure.io/newt' license=(GPL) depends=(gpm libxcrypt popt slang) -makedepends=("tcl>=$_tclver" 'python' 'python2') -optdepends=('tcl: whiptcl support' - 'python: libnewt support with the _snack module' - 'python2: libnewt support with the _snack module') +makedepends=(python "tcl>=$_tclver") +optdepends=('python: libnewt support with the _snack module' + 'tcl: whiptcl support') options=(!makeflags) source=("https://releases.pagure.org/newt/newt-$pkgver.tar.gz") -sha256sums=('265eb46b55d7eaeb887fca7a1d51fe115658882dfe148164b6c49fccac5abb31') +b2sums=('a0d6a15f87fe04dc535e65fcd28606cd666142d006a53b6ee0c8387a6295215e44f1815ac56ceb56b561ca9b5bc8f3cab2d04b5decd62642f46b744333dc7e34') prepare() { - cd "newt-$pkgver" - + cd newt-$pkgver + echo '#define USE_INTERP_RESULT 1' >> config.h sed -i "s:tcl8.4:tcl$_tclver:" Makefile.in - echo '#define USE_INTERP_RESULT 1' >> config.h } build() { - cd "newt-$pkgver" - + cd newt-$pkgver ./configure --prefix=/usr --with-gpm-support make } package() { - make -C "newt-$pkgver" prefix="$pkgdir/usr" install + make -C newt-$pkgver prefix="$pkgdir/usr" install } - -# vim: ts=2 sw=2 et:
