summaryrefslogtreecommitdiff
path: root/system/fio/fio.SlackBuild
diff options
context:
space:
mode:
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 9cf6f0e106..d295157efb 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