va eseguito da una directory dove si hanno i permessi di scrittura, in quanto crea una directory ./compiz dove fa tutto lo sporco lavoro.
Codice: Seleziona tutto
#!/bin/bash
NAME=compiz
VERSION=0.5.0svn`date +"%Y%m%d"`
BUILD=1w
ARCH=i486
if [ ! -d compiz ]
then
git clone git://git.freedesktop.org/git/xorg/app/compiz
fi
cd compiz
make clean
make distclean
git pull origin
if [ $? != 0 ]
then
echo "errore git"
exit
fi
./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/info \
--mandir=/usr/man \
--disable-static \
--disable-gconf \
--enable-kde \
--enable-librsvg \
--build=$ARCH-slackware-linux
if [ $? != 0 ]
then
echo "errore autogen.sh"
exit
fi
make
if [ $? != 0 ]
then
echo "errore make"
exit
fi
rm -rf pacchetto
mkdir pacchetto
make install DESTDIR=`pwd`/pacchetto
if [ $? != 0 ]
then
echo "errore make install"
exit
fi
cd pacchetto
mkdir install
echo "# HOW TO EDIT THIS FILE:
# The \"handy ruler\" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
compiz: compiz
compiz:
compiz: compiz is part of X11.
compiz:
compiz: For more information about the X.Org Foundation (the providers of the
compiz: X.Org implementation of the X Window System), see their website:
compiz:
compiz: http://www.x.org
compiz:
compiz:
compiz:" >install/slack-desc
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
if [ ! -d ../packages ]
then
mkdir ../packages
fi
if [ "`whoami`" != "root" ]
then
echo "Insert root password for package creation
su -c "makepkg -c n -l y ../packages/$NAME-$VERSION-$ARCH-$BUILD.tgz"
else
makepkg -c n -l y ../$NAME-$VERSION-$ARCH-$BUILD.tgz
fi



