Hi DC2ers,

You can look at the pacman scripts I have created thus far in http://monet.ncsa.uiuc.edu/~rplante/lsst/m4. These are actually m4 templates that hopefully make things simpler (as well as prevent hardcoding of the cache location).

A good example to look at is cfitsio-3006.1.pacman.m4 in the above directory. This package has a simple configure-make-install procedure to build it. The first four lines are all that need updating. Defining PACKAGE, VERSION, and TARBALL is required for this template; the ABOUTURL is optional. To support a different package, change the values in the 2nd argument to the appropriate values. Note that in m4, strings are quoted starting with a backtick (`) and ending with a forward tick (').

To create the pacman script, you will also need some included templates from the same directory: pmtemplate_pre.m4 and pmtemplate_post.m4.
Then you can run the following:

   m4 -P "-Dm4_BASEURL=http://monet.ncsa.uiuc.edu/~rplante/lsst"; \
   cfitsio-3006.1.pacman.m4 > .cfitsio-3006.1.pacman

Normally, users would not have to run this; the distribution administrator would run it when it gets deployed to a pacman cache.

cheers,
Ray

_______________________________________________
LSST-data mailing list
[email protected]
http://www.lsstmail.org/mailman/listinfo/lsst-data

Reply via email to