mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 03:37:14 +08:00
32 lines
711 B
Bash
32 lines
711 B
Bash
pkgname=bc
|
|
pkgver=1.07.1
|
|
pkgrel=1
|
|
pkgdesc="An arbitrary precision calculator language"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/bc/"
|
|
license=('GPL')
|
|
depends=('readline')
|
|
makedepends=('ed')
|
|
replaces=('bc-readline')
|
|
conflicts=('bc-readline')
|
|
install=bc.install
|
|
source=(http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
|
|
md5sums=('cda93857418655ea43590736fc3ca9fc')
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
--infodir=/usr/share/info --with-readline
|
|
make -j1
|
|
}
|
|
|
|
check() {
|
|
cd "${pkgname}-${pkgver}"
|
|
echo "quit" | ./bc/bc -l Test/checklib.b # 10 failures
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|