mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
found the repo :P
This commit is contained in:
parent
af6029d576
commit
67de620b56
1 changed files with 18 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
set -x
|
||||
|
||||
PRGNAM=love
|
||||
VERSION=0.6.0
|
||||
VERSION=$(date +%F.%m.%d_%H.%M) #0.7.0
|
||||
RELEASE_ID=20091214-301312c82b00
|
||||
|
||||
|
||||
|
@ -17,6 +17,8 @@ PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
|||
|
||||
PREFIX=/usr
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories/
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
|
@ -25,12 +27,20 @@ PREFIX=/usr
|
|||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
[ -e $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 \;
|
||||
if [ -e $CWD/$PRGNAM-$VERSION-linux-src.tar.?z* ]; then
|
||||
tar xvf $CWD/$PRGNAM-$VERSION-linux-src.tar.?z*
|
||||
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
|
||||
|
@ -45,6 +55,7 @@ PREFIX=/usr
|
|||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
[ ! -e ./configure ] && ./platform/unix/automagic
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
|
|
Loading…
Reference in a new issue