summaryrefslogtreecommitdiff
path: root/multimedia/nted/nted.SlackBuild
diff options
context:
space:
mode:
authorCorrado Franco <conraid@gmail.com>2010-05-12 17:42:47 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:42:47 +0200
commit15ec87e7111bd3562fe549556a097bacc8d884c3 (patch)
tree1b796c14743318cf9c2dda76111c8f8a0f977dfd /multimedia/nted/nted.SlackBuild
parent54b9a8ca95d2d25cb2812826bc63bb5165fc3085 (diff)
downloadslackbuilds-15ec87e7111bd3562fe549556a097bacc8d884c3.tar.gz
multimedia/nted: Updated for version 1.5.1
Diffstat (limited to 'multimedia/nted/nted.SlackBuild')
-rw-r--r--multimedia/nted/nted.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/multimedia/nted/nted.SlackBuild b/multimedia/nted/nted.SlackBuild
index 357208cd9c..75110d9325 100644
--- a/multimedia/nted/nted.SlackBuild
+++ b/multimedia/nted/nted.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/sh
-#
+
# Slackware build script for nted
#(http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted.xhtml)
#
@@ -22,11 +22,11 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Modified by SlackBuilds.org
+
+# Modified by the SlackBuilds.org project
PRGNAM=nted
-VERSION=${VERSION:-1.4.15}
+VERSION=${VERSION:-1.5.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,10 +40,13 @@ DOCS="ABOUT* AUTHORS COPYING* ChangeLog FAQ INSTALL NEWS README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKLDFLAGS=""; LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKLDFLAGS=""; LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
fi
set -e
@@ -61,11 +64,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Configure
+LDFLAGS="$SLKLDFLAGS" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -89,11 +93,9 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
-# Add slack-desc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Create package:
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz