# Contributor: Gavin D. Howard # Maintainer: Gavin D. Howard pkgname=howard-bc _pkgname=bc pkgver=0.5 pkgrel=1 pkgdesc="POSIX bc with GNU extensions" url="https://github.com/gavinhoward/bc" arch="all" license="0BSD" depends="!bc" source="$pkgname-$pkgver.tar.gz::https://github.com/gavinhoward/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" # The test suite uses a previously installed version of bc, # so it would not make much sense to run it. options="!check" build() { cd "$builddir" CFLAGS="-flto" make release } package() { cd "$builddir" mkdir -p "$pkgdir"/usr/bin PREFIX="$pkgdir"/usr make install } sha512sums="110a8a6b09a4ebd053c0bcdf4621c5aa6344d4591f51f6b2d323330c0a817374dc635fbe058db8f721668fd47832bde73d50cb1031bdaeec4668aa12edf733ab howard-bc-0.5.tar.gz"