This commit is contained in:
Gwenhael Le Moine 2011-03-23 17:47:06 +07:00
parent 838cc8cc7f
commit ffa530e7fc

View file

@ -4,7 +4,7 @@
CWD=$(pwd) CWD=$(pwd)
PRGNAM=$(basename $CWD) PRGNAM=$(basename $CWD)
VERSION=3.2.2 VERSION=3.2.4
ARCH=$(uname -m) ARCH=$(uname -m)
BUILD=1 BUILD=1
@ -31,40 +31,36 @@ rm -fr $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $PKG mkdir -p $PKG
# mise en place # mise en place
( cd $TMP cd $TMP
[ ! -e $CWD/$PRGNAM-$VERSION.tar.xz ] && \ [ ! -e $CWD/$PRGNAM-$VERSION.tar.xz ] && \
wget -c ftp://ftp.gnu.org/gnu/smalltalk/$PRGNAM-$VERSION.tar.xz \ wget -c ftp://ftp.gnu.org/gnu/smalltalk/$PRGNAM-$VERSION.tar.xz \
-O $CWD/$PRGNAM-$VERSION.tar.xz -O $CWD/$PRGNAM-$VERSION.tar.xz
tar xf $CWD/$PRGNAM-$VERSION.tar.xz tar xf $CWD/$PRGNAM-$VERSION.tar.xz
)
( cd $TMP/$PRGNAM-$VERSION cd $TMP/$PRGNAM-$VERSION
# configuration # configuration
CCPFLAGS=$SLCKFLAGS \ CCPFLAGS=$SLCKFLAGS \
CFLAGS=$SLCKFLAGS \ CFLAGS=$SLCKFLAGS \
./configure \ ./configure \
--prefix=$PREFIX \ --prefix=$PREFIX \
--mandir=$PREFIX/man \ --mandir=$PREFIX/man \
--infodir=$PREFIX/info \ --infodir=$PREFIX/info \
--docdir=$PREFIX/doc/$PRGNAM-$VERSION \ --docdir=$PREFIX/doc/$PRGNAM-$VERSION \
--includedir=$PREFIX/include \ --includedir=$PREFIX/include \
--libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \ --libdir=$PREFIX/lib$(echo $ARCH | grep -o 64) \
--enable-disassembler \ --enable-disassembler \
--enable-preemption --enable-preemption
# compilation # compilation
make -j3 PREFIX=$PREFIX make PREFIX=$PREFIX
# installation # installation
make install DESTDIR=$PKG make install DESTDIR=$PKG
)
# correction # correction
chown -R root:root $PKG/* chown -R root:root $PKG/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
( cd $TMP/$PRGNAM-$VERSION cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
)
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; [ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
[ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*.info*" -exec gzip -9f {} \; [ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*.info*" -exec gzip -9f {} \;
@ -91,6 +87,5 @@ $PRGNAM:
EOF EOF
# empaquetage # empaquetage
( cd $PKG cd $PKG
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d -)-$ARCH-$BUILD$TAG.txz makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d -)-$ARCH-$BUILD$TAG.txz
)