summaryrefslogtreecommitdiffstats
path: root/bc/Pkgfile
blob: 5239c57b75f6b698c35929a9418ee8b4a67aef5f (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
28
# Description: Langage permettant le calcul arbitraire de précision
# URL: http://ftp.gnu.org/gnu/bc/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=bc
version=1.06
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz )



build() {
	# build package
		cd $name-$version
		sed -i '/PROTO.*readline/d' bc/scan.l
		sed -i '/flex -I8/s/8//' configure
		sed -i '/stdlib/a #include <string.h>' lib/number.c
		sed -i 's/program.*save/static &/' bc/load.c
                ./configure --prefix=/usr\
			    --with-readline\
                            --mandir=/usr/share/man\
                            --infodir=/usr/share/info
		make
		make DESTDIR=$PKG install
		rm $PKG/usr/share/info/dir
}