Differences between revisions 2 and 17 (spanning 15 versions)
Revision 2 as of 2008-07-16 17:25:16
Size: 856
Comment: add a sample spkg-install
Revision 17 as of 2022-03-30 18:45:51
Size: 99
Editor: mkoeppe
Comment: Replace by link to developer's guide
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= ToDo = = SPKG Howto =
Line 3: Line 3:
There are usually a number of things to do for all spkgs, but none of them by

 * ensure that "make install" is non-parallel, i.e. do a "export MAKE=make"
 * SAGE_LOCAL check (#633)
 * add spkg-check (#299)
 * add proper SPKG.txt to all packages
 * /usr/bin/env bash (#1638)
 * add md5sums for spkgs (#329)
 * set LDFLAGS on OSX (#3349)

= A Sample spkg-install =
{{{
#!/usr/bin/env bash

if [ "$SAGE_LOCAL" = "" ]; then
   echo "SAGE_LOCAL undefined ... exiting";
   echo "Maybe run 'sage -sh'?"
   exit 1
fi

cd src

./configure --prefix=$SAGE_LOCAL
if [ $? -ne 0 ]; then
   echo "Error configuring PACKAGE_NAME."
   exit 1
fi

make
if [ $? -ne 0 ]; then
   echo "Error building PACKAGE_NAME."
   exit 1
fi

make install
if [ $? -ne 0 ]; then
   echo "Error installing PACKAGE_NAME."
   exit 1
fi
}}}
Outdated; see https://doc.sagemath.org/html/en/developer/packaging.html instead

SPKG Howto

Outdated; see https://doc.sagemath.org/html/en/developer/packaging.html instead