1 # Maintainer: TDY <tdy@gmx.com>
6 pkgdesc="A programming library for color text mode, widget based user interfaces"
8 url="https://fedorahosted.org/newt/"
10 depends=('popt' 'slang' 'tcl')
11 makedepends=('python2')
12 source=(https://fedorahosted.org/releases/n/e/$pkgname/$pkgname-$pkgver.tar.gz)
13 md5sums=('51b04128d9e1bf000fa769c417b74486')
16 cd "$srcdir/$pkgname-$pkgver"
18 -e 's,-ltcl8.4,-ltcl8.5,g' \
19 -e 's,$(SHCFLAGS) -o,$(LDFLAGS) &,g' \
20 -e 's,-g -o,$(CFLAGS) $(LDFLAGS) -o,g' \
21 -e 's,-shared -o,$(CFLAGS) $(LDFLAGS) &,g' \
22 -e 's,instroot,DESTDIR,g' \
23 -e 's, make , $(MAKE) ,g'
24 sed -i 's,/usr/bin/install,install,' po/Makefile
25 ./configure --prefix=/usr --with-gpm-support --with-tcl --enable-nls
26 make PYTHONVERS=python2.7
30 cd "$srcdir/$pkgname-$pkgver"
31 make DESTDIR="$pkgdir" install