pkgname=bc pkgver=7.0.3 pkgrel=1 pkgdesc="Implementation of dc and POSIX bc with GNU extensions" arch=('x86_64') url="https://git.gavinhoward.com/gavin/bc" license=('BSD-2-Clause') depends=('readline' 'ncurses') source=(https://github.com/gavinhoward/bc/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz) sha256sums=(91eb74caed0ee6655b669711a4f350c25579778694df248e28363318e03c7fc4) build() { cd ${pkgname}-${pkgver} CC="${CHOST}-gcc" ./configure --prefix=/usr --libdir=/usr/lib64 -G -O3 -r make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }