Skip to content

Commit

Permalink
[libmpc] Update & modernize Plan style.
Browse files Browse the repository at this point in the history
Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
  • Loading branch information
fnichol committed Jun 7, 2018
1 parent a350ce6 commit d5ebdf0
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions libmpc/plan.sh
@@ -1,16 +1,32 @@
pkg_name=libmpc
pkg_distname=mpc
_distname=mpc
pkg_origin=core
pkg_version=1.1.0
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily \
high precision and correct rounding of the result.\
"
pkg_upstream_url="http://www.multiprecision.org/"
pkg_license=('lgpl')
pkg_source=https://ftp.gnu.org/gnu/${pkg_distname}/${pkg_distname}-${pkg_version}.tar.gz
pkg_shasum=6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e
pkg_deps=(core/glibc core/gmp core/mpfr)
pkg_build_deps=(core/coreutils core/diffutils core/patch core/make core/gcc core/binutils)
pkg_source="https://ftp.gnu.org/gnu/${_distname}/${_distname}-${pkg_version}.tar.gz"
pkg_shasum="6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
pkg_dirname="${_distname}-${pkg_version}"
pkg_deps=(
core/glibc
core/gmp
core/mpfr
)
pkg_build_deps=(
core/coreutils
core/diffutils
core/patch
core/make
core/gcc
core/binutils
)
pkg_include_dirs=(include)
pkg_lib_dirs=(lib)
pkg_dirname=${pkg_distname}-${pkg_version}

do_prepare() {
do_default_prepare
Expand All @@ -32,5 +48,7 @@ do_check() {
# significantly altered. Thank you!
# ----------------------------------------------------------------------------
if [[ "$STUDIO_TYPE" = "stage1" ]]; then
pkg_build_deps=(core/binutils)
pkg_build_deps=(
core/binutils
)
fi

0 comments on commit d5ebdf0

Please sign in to comment.