Date: Sunday, January 26, 2014 @ 16:49:26 Author: andyrtr Revision: 204766
upgpkg: bc 1.06-9 fix compilation and some cleanup, FS#35905 Modified: bc/trunk/PKGBUILD ----------+ PKGBUILD | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-01-26 14:35:19 UTC (rev 204765) +++ PKGBUILD 2014-01-26 15:49:26 UTC (rev 204766) @@ -3,7 +3,7 @@ pkgname=bc pkgver=1.06 -pkgrel=8 +pkgrel=9 pkgdesc="An arbitrary precision calculator language" arch=('i686' 'x86_64') url="http://www.gnu.org/software/bc/" @@ -18,19 +18,21 @@ 'fc7ecbd9e55ef04c6d3a495692626116' 'b6fe9869830aca0d34badf810fe0cfb3') -build() { - export CFLAGS="${CFLAGS/-O?/-O3}" - - cd "${srcdir}/${pkgname}-${pkgver}" +prepare() { + cd "${pkgname}-${pkgver}" + unset CPPFLAGS patch -p1 -i "${srcdir}/build-fix.patch" - patch -p1 -i "${srcdir}/bc-1.06-info-dir-entry.patch" + patch -p1 -i "${srcdir}/bc-1.06-info-dir-entry.patch" +} +build() { + cd "${pkgname}-${pkgver}" ./configure --prefix=/usr --mandir=/usr/share/man \ --infodir=/usr/share/info --with-readline - make LEX="flex -I" + make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }