It's not very pretty, but I can use... Package: procheck Version: 3.5.4 Revision: 1 Maintainer: Jack Howarth <howa...@bromo.med.uc.edu> Source: none #Source: ftp://ftp.biochem.ucl.ac.uk/pub/procheck/tar3_5/procheck.tar.Z #Source-MD5: 3d12962079e42b0fa275424fabb74197 BuildDepends: gcc44, wget, fink (>= 0.24.12) Depends: gcc44-shlibs PatchFile: %n.patch PatchFile-MD5: 7d4497a7b339ed47c21be3b419cb2fdd PatchScript: << #!/bin/bash -ev if [ `/usr/bin/whoami` = "nobody" ] ; then wget -c ftp://ftp.biochem.ucl.ac.uk/pub/procheck/tar3_5/procheck.tar.Z tar -zxvf procheck.tar.Z cd procheck else cd %p/src if ! [ -f %p/src/procheck.tar.Z ] ; then wget -c ftp://ftp.biochem.ucl.ac.uk/pub/procheck/tar3_5/procheck.tar.Z fi cd %b tar -zxvf %p/src/procheck.tar.Z cd procheck fi sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 << CompileScript: << #!/bin/sh -ev cd procheck make all << InstallScript: << #!/bin/sh -ev cd procheck mkdir -p %i/share/procheck mkdir -p %i/etc/profile.d rm *.f *.c *.inc *.o Makefile cp * %i/share/procheck cp setup.scr %i/etc/profile.d/procheck.csh cp setup.sh %i/etc/profile.d/procheck.sh chmod 755 %i/share/procheck/setup.sh chmod 755 %i/etc/profile.d/procheck.csh chmod 755 %i/etc/profile.d/procheck.sh << Description: Protein Structure Validation Suite License: Restrictive Homepage: http://www.biochem.ucl.ac.uk/~roman/procheck/procheck.html
It does fail the fink validation because of the %/src in the PatchScript but it does the correct things. If executed as nobody, it downloads a local copy of the tarball into the build directory. Otherwise, it stores it in %p/src for reuse since the permission access is available in that case. Jack ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel