apio
1a82bbb234
The only port right now is bc, which works... kind of. It compiles, and runs, but is really janky. At least it runs!!
40 lines
606 B
Bash
40 lines
606 B
Bash
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()
|
|
{
|
|
HOSTCC=gcc PREFIX=${PREFIX:-""} $workdir/bc-$pkgver/configure --disable-nls --bc-only --disable-history --disable-man-pages
|
|
}
|
|
|
|
port_build()
|
|
{
|
|
make
|
|
}
|
|
|
|
port_install()
|
|
{
|
|
make install
|
|
}
|
|
|
|
port_uninstall()
|
|
{
|
|
make uninstall
|
|
} |