summaryrefslogtreecommitdiff
path: root/libraries/embryo/embryo.SlackBuild
diff options
context:
space:
mode:
authorAleksandar Samardzic <asamardzic@gmail.com>2010-05-13 00:29:17 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:29:17 +0200
commite7fdb9b8e2ff0094519ad582c3f4d0964f6ba119 (patch)
tree1801c85ef24b12895eb867a22277717fd1ad53c6 /libraries/embryo/embryo.SlackBuild
parent358e77b33c6ad0c78000ed5171456442741c9560 (diff)
downloadslackbuilds-e7fdb9b8e2ff0094519ad582c3f4d0964f6ba119.tar.gz
libraries/embryo: Updated for version 0.9.9.063
Diffstat (limited to 'libraries/embryo/embryo.SlackBuild')
-rw-r--r--libraries/embryo/embryo.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/libraries/embryo/embryo.SlackBuild b/libraries/embryo/embryo.SlackBuild
index 22242f45da..73c39acef5 100644
--- a/libraries/embryo/embryo.SlackBuild
+++ b/libraries/embryo/embryo.SlackBuild
@@ -5,7 +5,7 @@
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
PRGNAM=embryo
-VERSION=${VERSION:-0.9.9.060}
+VERSION=${VERSION:-0.9.9.063}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,10 +17,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
set -e
@@ -42,9 +45,12 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux \
--disable-static
make
@@ -54,15 +60,17 @@ make install DESTDIR=$PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}