include $(TOPDIR)/rules.mk
PKG_NAME:=bc
-PKG_VERSION:=1.07.1
+PKG_VERSION:=1.08.1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/bc
-PKG_HASH:=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
+PKG_HASH:=515430115b3334c636317503460a0950dff79940aa3259ce2c1aa67c2881d023
PKG_FIXUP := autoreconf
PKG_CPE_ID:=cpe:/a:gnu:bc
+SUBDIRS = lib bc dc
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
- stamp-h $(distdir).tar.gz h/number.h depcomp missing \
+ stamp-h $(distdir).tar.gz h/number.h depcomp missing
--- a/Makefile.in
+++ b/Makefile.in
-@@ -288,7 +288,7 @@ target_alias = @target_alias@
+@@ -305,7 +305,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-SUBDIRS = lib bc dc doc
+SUBDIRS = lib bc dc
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
- stamp-h $(distdir).tar.gz h/number.h depcomp missing \
- bc/libmath.h
+ stamp-h $(distdir).tar.gz h/number.h depcomp missing
+
---- a/bc/fix-libmath_h
-+++ b/bc/fix-libmath_h
-@@ -1,9 +1,9 @@
--ed libmath.h <<EOS-EOS
--1,1s/^/{"/
--1,\$s/\$/",/
--2,\$s/^/"/
--\$,\$d
--\$,\$s/,\$/,0}/
--w
--q
--EOS-EOS
-+#!/usr/bin/env bash
-+sed -e '1 s/^/{"/' \
-+ -e 's/$/",/' \
-+ -e '2,$ s/^/"/' \
-+ -e '$ d' \
-+ -i libmath.h
-+
-+sed -e '$ s/$/0}/' \
-+ -i libmath.h
--- a/configure
+++ b/configure
-@@ -5288,7 +5288,7 @@ case $bcle-$bcrl-$LEX in
+@@ -5926,7 +5926,7 @@ case $bcle-$bcrl-$LEX in
?-?-flex)
LEX="flex -I -8" ;;
?-y-*)