Hacker's guide: Creating new packages

Creating new packages

How do I create new packages for GNU Smalltalk?

Creating a package that does not include C code is easy. You can create a package.xml (the contents are described in the manual), and from there create a .star archive in the current directory with this command:

gst-package --target-directory=. package.xml

Omitting the --target-directory option will install the .star file under /usr/share/smalltalk. The option can be shortened to -t.

Alternatively, you can install the package so that it is used by a single user like this:

gst-package -t ~/.st package.xml

Developing a package that also includes C code requires a little more setup; gst-package can be used to create a GNU-style source tree. For more information, see Creating and distributing packages.

Syndicate content

User login