diff options
author | Nate Bargmann <n0nb@arrl.net> | 2018-02-10 20:19:56 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-02-17 07:42:45 +0700 |
commit | 006518d2484b7a792ad5fe777f0dc3a4f45a36eb (patch) | |
tree | 287c59148a210021f476adf29dc5594abbb00b3b /network/lxi-tools/lxi-tools.SlackBuild | |
parent | e3a564c87629bc6023f190496ae2088a04cfee64 (diff) |
network/lxi-tools: Updated for version 1.18.
Signed-off-by: Nate Bargmann <n0nb@arrl.net>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/lxi-tools/lxi-tools.SlackBuild')
-rw-r--r-- | network/lxi-tools/lxi-tools.SlackBuild | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/network/lxi-tools/lxi-tools.SlackBuild b/network/lxi-tools/lxi-tools.SlackBuild index e6e04c9ef72bb..84b8e451705f1 100644 --- a/network/lxi-tools/lxi-tools.SlackBuild +++ b/network/lxi-tools/lxi-tools.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=lxi-tools -VERSION=${VERSION:-1.16} +VERSION=${VERSION:-1.18} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,6 +40,12 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "${GUI:-no}" = "no" ]; then + BUILD_GUI="--disable-lxi-gui" +else + BUILD_GUI="--enable-lxi-gui" +fi + if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -69,12 +75,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +if [ x"${GUI}" = "xyes" ]; then + patch -p1 --verbose < $CWD/src_gui_lxi-gui_Makefile.am.diff + autoreconf --force -v --install +fi + LIBS="-lncurses" \ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ - --build=$ARCH-slackware-linux + --build=$ARCH-slackware-linux \ + $BUILD_GUI make make install DESTDIR=$PKG @@ -92,5 +104,13 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +if [ x"${GUI}" = "xyes" ]; then + mkdir -p $PKG/usr/share/applications + cp -a $CWD/lxi-gui.desktop $PKG/usr/share/applications + mkdir -p $PKG/usr/share/pixmaps + convert src/gui/lxi-gui/lxi-tools_256x256.png -resize 48x48 $PKG/usr/share/pixmaps/lxi-tools.png + cat $CWD/doinst.sh > $PKG/install/doinst.sh +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |