diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2011-12-24 10:22:38 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2011-12-24 10:22:38 +0100 |
commit | d5c5dab6b9c5762a20710a6c080a244e0211c830 (patch) | |
tree | 7eef6080c7946e8c3ad79fc5e9bbac87d21fdd7b | |
parent | 15f7eba7d32e28418fe1ff64a2b65a18743a8efd (diff) | |
download | tvisiontest-d5c5dab6b9c5762a20710a6c080a244e0211c830.tar.gz tvisiontest-d5c5dab6b9c5762a20710a6c080a244e0211c830.tar.bz2 |
how to build newt
-rw-r--r-- | PKGBUILD_newt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD_newt b/PKGBUILD_newt new file mode 100644 index 0000000..c7a1dff --- /dev/null +++ b/PKGBUILD_newt @@ -0,0 +1,35 @@ +# Contributor: Roman Kyrylych <roman@archlinux.org> +# Contributor: Tom Killian <tomk@runbox.com> +# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> + +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 +} |