summaryrefslogtreecommitdiff
path: root/development/poedit/poedit.SlackBuild
diff options
context:
space:
mode:
authorNiklas Nille Åkerström <nille.kungen[AT]gmail.com>2010-05-13 00:25:13 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:25:13 +0200
commit931bae2df4825ada85f7e7c43554fccd2b4093fb (patch)
treec779b2fa9f9312b342a2a10b1befd6a1d81a073e /development/poedit/poedit.SlackBuild
parent8e9f1225f7adb13eb8d4fda13d3f4b10f00f4330 (diff)
downloadslackbuilds-931bae2df4825ada85f7e7c43554fccd2b4093fb.tar.gz
development/poedit: Updated for version 1.4.2
Diffstat (limited to 'development/poedit/poedit.SlackBuild')
-rw-r--r--development/poedit/poedit.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/development/poedit/poedit.SlackBuild b/development/poedit/poedit.SlackBuild
index 1a35209222..42936537ca 100644
--- a/development/poedit/poedit.SlackBuild
+++ b/development/poedit/poedit.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for poedit
-#
+
# Copyright 2008 Niklas "Nille" Åkerström
# All rights reserved.
#
@@ -35,10 +35,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
@@ -59,6 +62,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--build=$ARCH-slackware-linux \
@@ -71,13 +75,13 @@ make install-strip DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp AUTHORS COPYING NEWS README TODO\
+cp -a AUTHORS COPYING NEWS README TODO \
$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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}