#/bin/bash -l PKGNAME=cmake #These are required variables and must VERSION=3.11.3 #be set before calling 'init_udbuildenv' #Setting the "SITEURL" is not required, but is #helpful later. SITEURL=https://cmake.org/files/v${VERSION%.*} PKGINFO='Cross-Platform Make' #Helpful for the ''create_valet_template'' function, URLINFO=http://www.cmake.org #but not required at all vpkg_devrequire udbuild/2 #Use VALET to load the udbuild v2 environment init_udbuildenv #Initialize the udbuild environment #Download the source file if it doesn't already exist download $SITEURL/$PKGNAME-$VERSION.tar.gz unpack $PKGNAME-$VERSION.tar.gz #Unpack the source file into $PREFIX/src and cd there create_valet_template #Create a template file for valet in the attic (you #can't just copy this into place) ./configure --prefix=$PREFIX #Run your normal configure, without #having to define your own PREFIX #variable, because 'init_udbuildenv' did #that for you. make #normal make commands udbuildmon make install #wrap your 'make install' with the #'udbuildmon' function to log what files #and directories were changed.