A.J. Venter wrote:
>> But you don't need to be root to create the package, do you?
> Actually you do. Slackware packages require that you set all the files as 
> root-owned before creating the tarball - and THAT cannot be done by a normal 
> user (permissions are specified at build-time, not install time).
> It would be possible to bypass this with fakeroot -but of couse that would 
> add 
> a new, stupid, dependency.
>> Do you have similar scripts for fpc?
> Not yet no, but I will :)
> 
> A.J.

Since slackware packages are just tar.gz files can't you just
do:INSTALL_PREFIX=~/my/install/path/usr make install
and then mkdir ~/my/install/path/install copy slack-desc to this folder
and then tar and gzip it?

Ok. before I sent this email I gave what I said a testrun.


here's what I did:


mkdir /tmp/slackware

wget lazarus-source.tar.gz // not the real filename I know...
tar -zxf ./lazarus-source.tar.gz

I changed the Makefile.fpc in lazarus/ to use the INSTALL_PREFIX (a
patch has been submitted for this) and used fpcmake to rebuild the Makefile

mkdir /tmp/slackware/usr
mkdir /tmp/slackware/install  // << slack-desc goes in here
echo "(ln -sf /usr/share/lazarus/lazarus /usr/bin/lazarus)" >
/tmp/slackware/install/doinst.sh
chmod +x /tmp/slackware/install/doinst.sh

cd ./lazarus

make

INSTALL_PREFIX=/tmp/slackware/usr/ make install

cd ../   (/tmp/slackware)

tar -cf lazarus-version-arch.tar
gzip ./lazarus-version-arch.tar
mv ./lazarus-version-arch.tar.gz mv ./lazarus-version-arck.tgz

that's it  :)

Works ok.

Andrew

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to