summaryrefslogtreecommitdiffstats
path: root/newt/Pkgfile
blob: 161a7d6c0962d0bdcf8e67e1c88c867d529d2b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Description: Librairie graphique pour mode texte
# URL: "http://www.redhat.com"
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:slang
# Run on:slang

name=newt
version=0.52.12
release=1

source=(https://fedorahosted.org/releases/n/e/$name/$name-$version.tar.gz )

build() {
	cd ${name}-$version

	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
	sed -i "s/python3.1//" po/Makefile

        ./configure --prefix=/usr --with-gpm-support
        make
        make prefix=$PKG/usr install
}