Skip to content

Instantly share code, notes, and snippets.

Created April 6, 2017 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/122417c2dcd1126f183de0cb7e487c84 to your computer and use it in GitHub Desktop.
Save anonymous/122417c2dcd1126f183de0cb7e487c84 to your computer and use it in GitHub Desktop.
/usr/ports/core/bc/Pkgfile
# Description: An arbitrary precision calculator language
# URL: http://www.gnu.org/software/bc/bc.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: ncurses, readline
name=bc
version=1.06
release=4
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz \
$name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version-compile_fixes.patch
patch -p1 < ../$name-$version-fixes-1.patch
./configure --prefix=/usr --with-readline --mandir=/usr/share/man
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment