From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/libnewt/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 community/libnewt/PKGBUILD (limited to 'community/libnewt') diff --git a/community/libnewt/PKGBUILD b/community/libnewt/PKGBUILD new file mode 100644 index 000000000..c7a1dff03 --- /dev/null +++ b/community/libnewt/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Roman Kyrylych +# Contributor: Tom Killian +# Maintainer: Daniel J Griffiths + +pkgname=libnewt +pkgver=0.52.12 +pkgrel=3 +pkgdesc="Not Erik's Windowing Toolkit - text mode windowing with slang" +arch=('i686' 'x86_64') +url="http://www.redhat.com" +license=('GPL') +depends=('slang' 'popt' 'gpm') +makedepends=('tcl' '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') + +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 +} + +package() { + cd ${srcdir}/newt-${pkgver} + + make prefix=${pkgdir}/usr install +} -- cgit v1.2.3-54-g00ecf