ledger has switched to cmake in its alpha branch, lurking upstream bug causing it to install to /usr/local still

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2012-05-30 15:47:07 +02:00
parent a509fc0edc
commit d6b75f0a72

View file

@ -6,7 +6,7 @@
CWD=$(pwd) CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
BRANCH=${BRANCH:="BETA"} BRANCH=${BRANCH:="ALPHA"}
VERSION=${VERSION:=2.6.3} VERSION=${VERSION:=2.6.3}
ARCH=${ARCH:-$(uname -m)} ARCH=${ARCH:-$(uname -m)}
BUILD=${BUILD:-2} BUILD=${BUILD:-2}
@ -74,22 +74,12 @@ sed -i 's|git:|http:|g' $(grep -l "git:" .* -r)
./acprep pull ./acprep pull
# we're old fashioned like this ./acprep opt config --prefix=/usr --python
./acprep autoconf
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--infodir=/usr/info \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--build=$ARCH-slackware-linux
# fix a bug where Emacs' binary name isn't detected correctly (with emacs 24) # fix a bug where Emacs' binary name isn't detected correctly (with emacs 24)
sed -i 's|^EMACS = .*$|EMACS = emacs|g' Makefile sed -i 's|^EMACS = .*$|EMACS = emacs|g' Makefile
make $NUMJOBS || make || exit 1 ./acprep opt -- make $NUMJOBS || exit 1
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG || exit 1
# mv $PKG/usr/share/man $PKG/usr/ # mv $PKG/usr/share/man $PKG/usr/