summaryrefslogtreecommitdiff
path: root/community/libnewt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-25 02:32:08 -0800
committerroot <root@rshg054.dnsready.net>2012-12-25 02:32:08 -0800
commit6fbdd2899f39266e458531dcffefb85b9ce8d1b9 (patch)
tree7d290e717ddd4dab90362a017be197c551dd2ae0 /community/libnewt
parent6003fa8908f984a4696fade78b69a8803eabcc6c (diff)
Tue Dec 25 02:27:55 PST 2012
Diffstat (limited to 'community/libnewt')
-rw-r--r--community/libnewt/PKGBUILD38
1 files changed, 21 insertions, 17 deletions
diff --git a/community/libnewt/PKGBUILD b/community/libnewt/PKGBUILD
index 0c90df25b..3719e587e 100644
--- a/community/libnewt/PKGBUILD
+++ b/community/libnewt/PKGBUILD
@@ -1,35 +1,39 @@
+# $Id: PKGBUILD 81605 2012-12-25 00:34:10Z foutrelis $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Tom Killian <tomk@runbox.com>
-# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=libnewt
pkgver=0.52.12
-pkgrel=4
+_tclver=8.6
+pkgrel=5
pkgdesc="Not Erik's Windowing Toolkit - text mode windowing with slang"
arch=('i686' 'x86_64')
-url="http://www.redhat.com"
+url='http://www.redhat.com/'
license=('GPL')
depends=('slang' 'popt' 'gpm')
-makedepends=('tcl' 'python2')
+makedepends=("tcl>=$_tclver" 'python2')
optdepends=('tcl: whiptcl support' \
'python2: libnewt api through _snack module')
options=('!makeflags')
-source=(https://fedorahosted.org/releases/n/e/newt/newt-${pkgver}.tar.gz)
-md5sums=('51b04128d9e1bf000fa769c417b74486')
+source=("https://fedorahosted.org/releases/n/e/newt/newt-$pkgver.tar.gz")
+sha256sums=('2ba88dc3d118daf509c58e3707c43ad57dd3415d8164054e93fe76439f348529')
build() {
- cd ${srcdir}/newt-${pkgver}
-
- sed -i "s:tcl8.4:tcl8.5:" Makefile.in
- sed -i "s:#!/usr/bin/python:#!/usr/bin/python2:" *.py
- sed -i "s:/usr/bin/install:/bin/install:" po/Makefile
-
- ./configure --prefix=/usr --with-gpm-support
- make
+ cd "$srcdir/newt-$pkgver"
+
+ sed -i "s:tcl8.4:tcl$_tclver:" Makefile.in
+ sed -i 's:bin/python:bin/python2:' *.py
+ ./configure --prefix=/usr --with-gpm-support
+ echo '#define USE_INTERP_RESULT 1' >> config.h
+ make
}
package() {
- cd ${srcdir}/newt-${pkgver}
-
- make prefix=${pkgdir}/usr install
+ cd "$srcdir/newt-$pkgver"
+
+ make prefix="$pkgdir/usr" install
}
+
+# vim:set ts=2 sw=2 et: