diff options
Diffstat (limited to 'network/twitter-cmdline/twitter-cmdline.SlackBuild')
-rw-r--r-- | network/twitter-cmdline/twitter-cmdline.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/network/twitter-cmdline/twitter-cmdline.SlackBuild b/network/twitter-cmdline/twitter-cmdline.SlackBuild index c28f65532b..ea060e2c24 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} + |