diff options
Diffstat (limited to 'multimedia/pipe-viewer/pipe-viewer.SlackBuild')
-rw-r--r-- | multimedia/pipe-viewer/pipe-viewer.SlackBuild | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/multimedia/pipe-viewer/pipe-viewer.SlackBuild b/multimedia/pipe-viewer/pipe-viewer.SlackBuild index e6d0fd481c10..f3ce9c278ee4 100644 --- a/multimedia/pipe-viewer/pipe-viewer.SlackBuild +++ b/multimedia/pipe-viewer/pipe-viewer.SlackBuild @@ -6,21 +6,20 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230103 bkw: v0.4.4 BUILD=2: +# - size icons correctly. +# - include doinst.sh if gtk frontend built. +# - ARCH=noarch, there's no lib vs. lib64 or compiled code here. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pipe-viewer VERSION=${VERSION:-0.4.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" @@ -31,19 +30,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi +# No SLKCFLAGS or LIBDIRSUFFIX needed (pure perl). set -e @@ -99,7 +86,7 @@ if [ "$BUILD_GTK" = "yes" ]; then size=${px}x${px} dir=$PKG/usr/share/icons/hicolor/$size/apps mkdir -p $dir - convert -resize $size share/icons/gtk-pipe-viewer.png $dir/gtk-$PRGNAM.png + convert -resize $size! share/icons/gtk-pipe-viewer.png $dir/gtk-$PRGNAM.png done ln -s ../icons/hicolor/48x48/apps/gtk-$PRGNAM.png \ @@ -109,6 +96,9 @@ if [ "$BUILD_GTK" = "yes" ]; then if [ "$TERMINAL" != "" ]; then sed -i "s/'gnome-terminal'/'$TERMINAL', &/" $PKG/usr/bin/gtk-$PRGNAM fi + + mkdir -p $PKG/install + cat $CWD/doinst.sh > $PKG/install/doinst.sh fi find $PKG -name perllocal.pod \ |