summaryrefslogtreecommitdiff
path: root/academic/WordNet/WordNet.SlackBuild
diff options
context:
space:
mode:
authorMichael Gabilondo <mgabilo{at}gmail{dot}com>2010-05-13 00:19:45 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:19:45 +0200
commit150a22c8ea33e4d808c782347956860bcd59725e (patch)
tree28e1e9bec261fa1b5c20034cf648ff8b06964831 /academic/WordNet/WordNet.SlackBuild
parent828f3f65bcd3b435614a7ff1a581b89a84b0f702 (diff)
downloadslackbuilds-150a22c8ea33e4d808c782347956860bcd59725e.tar.gz
academic/WordNet: Updated for version 3.0
Diffstat (limited to 'academic/WordNet/WordNet.SlackBuild')
-rw-r--r--academic/WordNet/WordNet.SlackBuild25
1 files changed, 19 insertions, 6 deletions
diff --git a/academic/WordNet/WordNet.SlackBuild b/academic/WordNet/WordNet.SlackBuild
index c5322135ab..69c6b74bcb 100644
--- a/academic/WordNet/WordNet.SlackBuild
+++ b/academic/WordNet/WordNet.SlackBuild
@@ -18,10 +18,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
@@ -30,7 +33,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -43,17 +46,27 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--exec-prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
+# Make sure WNHOME is set in the users' environments
+mkdir -p $PKG/etc/profile.d
+cat $CWD/profile.d/WordNet.sh > $PKG/etc/profile.d/WordNet.sh
+cat $CWD/profile.d/WordNet.csh > $PKG/etc/profile.d/WordNet.csh
+chmod 0755 $PKG/etc/profile.d/*
+
( cd $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
+ 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
)
( cd $PKG/usr/man
@@ -62,11 +75,11 @@ make install DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/html doc/ps doc/pdf $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+( cd $PKG/usr/doc ; mv html pdf ps $PRGNAM-$VERSION )
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}