aboutsummaryrefslogtreecommitdiff
path: root/system/fio/fio.SlackBuild
diff options
context:
space:
mode:
authorBrenton Earl <brent@exitstatusone.com>2017-05-26 23:04:13 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-05-27 07:29:16 +0700
commit0946cb1a1dd910eafabaa1c1a8f0eaf1d2a8eec4 (patch)
treebb80fa41e8640fef851ff382fd5ed4525a939c81 /system/fio/fio.SlackBuild
parent3872f4acc318fefa2ad629ed7b8911423286a963 (diff)
system/fio: Updated for version 2.20.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fio/fio.SlackBuild')
-rw-r--r--system/fio/fio.SlackBuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/system/fio/fio.SlackBuild b/system/fio/fio.SlackBuild
index 9cf6f0e106269..d295157efb78a 100644
--- a/system/fio/fio.SlackBuild
+++ b/system/fio/fio.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fio
-VERSION=${VERSION:-2.19}
+VERSION=${VERSION:-2.20}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,6 +55,11 @@ else
LIBDIRSUFFIX=""
fi
+# Fio has a Gtk interface that is not built by default.
+# To enable it pass 'yes' to the GUI variable
+# Example: GUI=yes sh fio.SlackBuild
+gui="" ; [ "$GUI" = "yes" ] && gui="--enable-gfio"
+
set -e
rm -rf $PKG
@@ -72,7 +77,8 @@ find -L . \
./configure \
--prefix="/usr" \
- --extra-cflags="$SLKCFLAGS"
+ --extra-cflags="$SLKCFLAGS" \
+ $gui
make
make install DESTDIR=$PKG
@@ -87,7 +93,15 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING HOWTO README REPORTING-BUGS examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Add .desktop file if GUI is built
+# No icon available
+if [ "$GUI" = "yes" ]; then
+ mkdir -p $PKG/usr/share/applications
+ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+fi
+
mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG