diff --git a/ap/ledger/ledger.SlackBuild b/ap/ledger/ledger.SlackBuild index 68c29a75..69f2da0a 100755 --- a/ap/ledger/ledger.SlackBuild +++ b/ap/ledger/ledger.SlackBuild @@ -6,11 +6,12 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:=2.6.3} +VERSION=${VERSION:=2.6.3} #$(date +%Y.%m.%d_%H.%M)} ARCH=${ARCH:-$(uname -m)} BUILD=${BUILD:-1} TAG=${TAG:-cyco} +# REPOSITORY=/home/cycojesus/projets/packages/repositories/$PRGNAM TMP=${TMP:-/tmp/$TAG} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -31,9 +32,18 @@ mkdir -p $TMP $PKG/usr cd $TMP rm -rf $PRGNAM-$VERSION -[ ! -e $CWD/$PRGNAM-$VERSION.tar.gz ] && wget -c -O $CWD/$PRGNAM-$VERSION.tar.gz http://cloud.github.com/downloads/jwiegley/$PRGNAM/$PRGNAM-$VERSION.tar.gz +# if [ ! -e $REPOSITORY ]; then +# git clone https://github.com/jwiegley/ledger.git $REPOSITORY +# else +# ( cd $REPOSITORY +# git pull +# ) +# fi +# cp -R $REPOSITORY $PRGNAM-$VERSION +[ ! -e $CWD/$PRGNAM-$VERSION.tar.gz ] && wget -c -O $CWD/$PRGNAM-$VERSION.tar.gz http://cloud.github.com/downloads/jwiegley/$PRGNAM/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 + cd $PRGNAM-$VERSION || exit 1 chown -R root:root . find . \ @@ -42,6 +52,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# we're old fashioned like this +# ./acprep autoconf + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \