updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / newt / PKGBUILD
blobcebe6302579741d3a8f698ae3855f8f52c77bc68
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=newt
4 pkgver=0.52.12
5 pkgrel=1
6 pkgdesc="A programming library for color text mode, widget based user interfaces"
7 arch=('i686' 'x86_64')
8 url="https://fedorahosted.org/newt/"
9 license=('GPL')
10 depends=('popt' 'slang' 'tcl')
11 makedepends=('python2')
12 source=(https://fedorahosted.org/releases/n/e/$pkgname/$pkgname-$pkgver.tar.gz)
13 md5sums=('51b04128d9e1bf000fa769c417b74486')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
17   sed -i Makefile.in \
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
29 package() {
30   cd "$srcdir/$pkgname-$pkgver"
31   make DESTDIR="$pkgdir" install