mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
development/ftjam: Updated for version 2.5.2
This commit is contained in:
parent
466c36d08a
commit
bce765a964
2 changed files with 15 additions and 12 deletions
|
@ -12,6 +12,7 @@ VERSION=2.5.2
|
|||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -19,8 +20,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -36,20 +42,15 @@ chmod -R u+w,go+r-w,a-s .
|
|||
# Works around a ftjam bug where jam0 segfaults.
|
||||
CFLAGS="$SLKCFLAGS -fno-strict-aliasing" \
|
||||
CXXFLAGS="$SLKCFLAGS -fno-strict-aliasing" \
|
||||
./configure --prefix=/usr
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README CHANGES RELNOTES Jambase *.html $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
@ -59,4 +60,4 @@ mkdir -p $PKG/install
|
|||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="ftjam"
|
|||
VERSION="2.5.2"
|
||||
HOMEPAGE="http://www.freetype.org/jam/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/freetype/ftjam-2.5.2.tar.bz2"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="e61304b370ba06f68082f0219a196576"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Ferenc Deak"
|
||||
EMAIL="ferenc.deak@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="rworkman,pprkut"
|
||||
|
|
Loading…
Reference in a new issue