aboutsummaryrefslogtreecommitdiff
path: root/network/twitter-cmdline/twitter-cmdline.SlackBuild
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-13 00:38:31 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:38:31 +0200
commiteb66e8abaf93ebe616246e54ad631a9b7a911060 (patch)
tree4cbfccabe48c4fc8362bdd62cd2764b4a451414c /network/twitter-cmdline/twitter-cmdline.SlackBuild
parent33fc21334195b669817639f2b9b6b169804828e3 (diff)
network/twitter-cmdline: Updated for version 1.03
Diffstat (limited to 'network/twitter-cmdline/twitter-cmdline.SlackBuild')
-rw-r--r--network/twitter-cmdline/twitter-cmdline.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/network/twitter-cmdline/twitter-cmdline.SlackBuild b/network/twitter-cmdline/twitter-cmdline.SlackBuild
index c28f65532b2a..ea060e2c244b 100644
--- a/network/twitter-cmdline/twitter-cmdline.SlackBuild
+++ b/network/twitter-cmdline/twitter-cmdline.SlackBuild
@@ -25,8 +25,8 @@
PRGNAM=twitter-cmdline
SRCNAM=twitter
VERSION=1.03
-ARCH=${ARCH:-noarch}
-BUILD=${BUILD:-1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,6 +35,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="README"
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+fi
+
set -e
rm -rf $PKG
@@ -55,8 +63,8 @@ find . \
# If you prefer cleartext authentication, feel free to comment this out.
zcat $CWD/https.patch.gz | patch -p1
-install -d $PKG/usr/bin/ $PKG/usr/lib/perl5/vendor_perl/5.10.0/
-install -m 0644 Twitter.pm $PKG/usr/lib/perl5/vendor_perl/5.10.0/
+install -d $PKG/usr/bin/ $PKG/usr/lib$LIBDIRSUFFIX/perl5/vendor_perl/5.10.0/
+install -m 0644 Twitter.pm $PKG/usr/lib$LIBDIRSUFFIX/perl5/vendor_perl/5.10.0/
install -m 0755 twitter.pl $PKG/usr/bin/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -67,4 +75,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}
+