summaryrefslogtreecommitdiff
path: root/network/amap/amap.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/amap/amap.SlackBuild')
-rw-r--r--network/amap/amap.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/network/amap/amap.SlackBuild b/network/amap/amap.SlackBuild
index 7c6d2cf64e..bbbb900752 100644
--- a/network/amap/amap.SlackBuild
+++ b/network/amap/amap.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=amap
VERSION=${VERSION:-5.2}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -36,6 +36,14 @@ OUTPUT=${OUTPUT:-/tmp}
DOCS="LICENCE.AMAP LICENSE.GNU README"
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+fi
+
set -e
rm -rf $PKG
@@ -52,7 +60,7 @@ find . \
-exec chmod 644 {} \;
# Add DESTDIR support and fix up a few other things
-patch -p1 < $CWD/slackware.patch
+patch -p1 --verbose < $CWD/slackware$LIBDIRSUFFIX.diff
./configure --prefix=/usr
@@ -79,4 +87,5 @@ 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}
+