found the repo :P

This commit is contained in:
Gwenhael Le Moine 2010-12-06 18:01:03 +07:00
parent af6029d576
commit 67de620b56

View file

@ -2,7 +2,7 @@
set -x set -x
PRGNAM=love PRGNAM=love
VERSION=0.6.0 VERSION=$(date +%F.%m.%d_%H.%M) #0.7.0
RELEASE_ID=20091214-301312c82b00 RELEASE_ID=20091214-301312c82b00
@ -17,6 +17,8 @@ PKG=$TMP/$PACKAGER/pkg-$PRGNAM
PREFIX=/usr PREFIX=/usr
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
# Cleaning # Cleaning
( cd $TMP ( cd $TMP
rm -fr $PRGNAM-$VERSION rm -fr $PRGNAM-$VERSION
@ -25,12 +27,20 @@ PREFIX=/usr
# Fetching sources # Fetching sources
( cd $TMP ( cd $TMP
[ -e $CWD/$PRGNAM-$VERSION-linux-src.tar.?z* ] \ if [ -e $CWD/$PRGNAM-$VERSION-linux-src.tar.?z* ]; then
&& tar xvf $CWD/$PRGNAM-$VERSION-linux-src.tar.?z* tar xvf $CWD/$PRGNAM-$VERSION-linux-src.tar.?z*
# [ ! -e $PRGNAM-$VERSION ] \
# && wget -c http://$PRGNAM.googlecode.com/files/$PRGNAM-$VERSION.tar.bz2 \
# && tar xvf $PRGNAM-$VERSION.tar.?z*
find . -type d -name "$PRGNAM-*-*" -exec mv {} $PRGNAM-$VERSION \; find . -type d -name "$PRGNAM-*-*" -exec mv {} $PRGNAM-$VERSION \;
else
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
if [ -e $REPOSITORIES/$PRGNAM ]; then
( cd $REPOSITORIES/$PRGNAM
hg pull -u
)
else
hg clone http://bitbucket.org/rude/love $REPOSITORIES/$PRGNAM
fi
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
fi
) )
# Preparation # Preparation
@ -45,6 +55,7 @@ PREFIX=/usr
# Configuration # Configuration
( cd $TMP/$PRGNAM-$VERSION ( cd $TMP/$PRGNAM-$VERSION
[ ! -e ./configure ] && ./platform/unix/automagic
./configure \ ./configure \
--prefix=$PREFIX \ --prefix=$PREFIX \
--mandir=$PREFIX/man \ --mandir=$PREFIX/man \