diff options
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} |