2022-10-23 14:44:50 +00:00
|
|
|
pkgname="bc"
|
|
|
|
pkgver="6.0.4"
|
|
|
|
pkgurl="https://github.com/gavinhoward/bc/releases/download/$pkgver/bc-$pkgver.tar.gz"
|
|
|
|
|
|
|
|
pkgmode="web"
|
|
|
|
|
|
|
|
setupdir="$workdir"
|
|
|
|
builddir="$workdir/build"
|
|
|
|
installdir="$workdir/build"
|
|
|
|
srcdir="$workdir/bc-$pkgver"
|
|
|
|
|
|
|
|
port_unpack()
|
|
|
|
{
|
|
|
|
tar xvf bc-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
port_patch()
|
|
|
|
{
|
|
|
|
patch -u -i $portdir/bc.patch -p 1 -d $workdir
|
|
|
|
}
|
|
|
|
|
|
|
|
port_configure()
|
|
|
|
{
|
2022-10-23 18:03:29 +00:00
|
|
|
HOSTCC=gcc PREFIX=${PREFIX:-""} $srcdir/configure --disable-nls --bc-only --disable-history --disable-man-pages
|
2022-10-23 14:44:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
port_build()
|
|
|
|
{
|
2022-10-23 17:27:19 +00:00
|
|
|
make -j$(nproc)
|
2022-10-23 14:44:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
port_install()
|
|
|
|
{
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
port_uninstall()
|
|
|
|
{
|
|
|
|
make uninstall
|
|
|
|
}
|