aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/twitter-cmdline/twitter-cmdline.SlackBuild19
-rw-r--r--network/twitter-cmdline/twitter-cmdline.info2
2 files changed, 16 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}
+
diff --git a/network/twitter-cmdline/twitter-cmdline.info b/network/twitter-cmdline/twitter-cmdline.info
index f43335e6fd80..e94181b2f497 100644
--- a/network/twitter-cmdline/twitter-cmdline.info
+++ b/network/twitter-cmdline/twitter-cmdline.info
@@ -3,6 +3,8 @@ VERSION="1.03"
HOMEPAGE="http://gabrielcain.com/projects/twitter/"
DOWNLOAD="http://gabrielcain.com/projects/twitter/twitter-cmdline-1.03.tar.gz"
MD5SUM="8a439e3e53fa0c3c2a4e9e6998d29b4c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="Marco Bonetti"
EMAIL="sid77@slackware.it"
APPROVED="dsomero"