Uh...never mind.....I see the "$install" stuff (now). Sorry about the quick (before I fully read the code) response.
> And if I have a package that does not use an install script ? > > (ug) > > >> Hey fellow archers, >> >> I've been busy building lots of packages for the PPC port lately and >> came across lots of packages that rely on >> an install script. As I simply copied stuff from the x86 /var/abs >> sometimes i forgot to copy it as well. Not that this >> wasn't a problem already, makepkg builds without complain but for a >> short notice from bash that it couldn't find >> some file one easily may just ignore after a long day full of work. >> :-) >> >> To sum up, I patched my makepkg and now - hoping that it might get >> integrated into the official one, here is a patch: >> >> *--- /usr/bin/makepkg 2005-07-04 01:43:59.000000000 +0200* >> *+++ makepkg 2005-07-07 22:00:54.000000000 +0200* >> @@ -547,6 +547,17 @@ >> fi >> mkdir -p $startdir/pkg >> >> +# check for an install script >> +if [ "$install" != "" ]; then >> + msg "Copying install script..." >> + if [ -f $startdir/$install ]; then >> + cp $startdir/$install $startdir/pkg/.INSTALL >> + else >> + error "Install script not found!" >> + exit 2 >> + fi >> +fi >> + >> if [ "$NOBUILD" = "1" ]; then >> msg "Sources are ready." >> exit 0 >> @@ -658,12 +669,6 @@ >> echo "backup = $it" >>.PKGINFO >> done >> >> -# check for an install script >> -if [ "$install" != "" ]; then >> - msg "Copying install script..." >> - cp $startdir/$install $startdir/pkg/.INSTALL >> -fi >> - >> # build a filelist >> msg "Generating .FILELIST file..." >> cd $startdir/pkg >> >> >> >> _______________________________________________ >> arch mailing list >> [email protected] >> http://www.archlinux.org/mailman/listinfo/arch > > > > > _______________________________________________ > arch mailing list > [email protected] > http://www.archlinux.org/mailman/listinfo/arch _______________________________________________ arch mailing list [email protected] http://www.archlinux.org/mailman/listinfo/arch
