1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-06 13:56:14 +02:00
build/pkg/gmp/build
David Oberhollenzer fa4eff263b Cleanup: implement defaults for package functions
This commit adds an "emptypackage" template that implements defaults
for all package functions and is included before every package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

23 lines
491 B
Plaintext
Executable file

VERSION="6.2.0"
SRCDIR="gmp-$VERSION"
TARBALL="gmp-$VERSION.tar.bz2"
URL="http://ftp.gnu.org/gnu/gmp"
SHA256SUM="f51c99cb114deb21a60075ffb494c1a210eb9d7cb729ed042ddb7de9534451ea"
DEPENDS="toolchain"
SUBPKG="gmp gmp-dev gmp++ gmp++-dev"
build() {
run_configure "$1" --enable-cxx
make -j $NUMJOBS
}
deploy() {
unfuck_libtool
make DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
}
check_update() {
check_update_simple "$URL" "gmp" "tar.bz2"
}