summaryrefslogtreecommitdiffstats
path: root/qt5-qmake
diff options
context:
space:
mode:
Diffstat (limited to 'qt5-qmake')
-rwxr-xr-xqt5-qmake/tuxboot/DEPENDS7
-rwxr-xr-xqt5-qmake/tuxboot/DETAILS22
-rw-r--r--qt5-qmake/tuxboot/HISTORY8
-rwxr-xr-xqt5-qmake/tuxboot/INSTALL2
-rwxr-xr-xqt5-qmake/tuxboot/PRE_BUILD3
-rw-r--r--qt5-qmake/tuxboot/patches/0001-build-with-qt5.patch97
6 files changed, 139 insertions, 0 deletions
diff --git a/qt5-qmake/tuxboot/DEPENDS b/qt5-qmake/tuxboot/DEPENDS
new file mode 100755
index 0000000000..18a4b74d77
--- /dev/null
+++ b/qt5-qmake/tuxboot/DEPENDS
@@ -0,0 +1,7 @@
+depends -sub CXX gcc &&
+depends qtbase &&
+depends qtftp &&
+depends qthttp &&
+depends mtools &&
+depends syslinux &&
+depends p7zip
diff --git a/qt5-qmake/tuxboot/DETAILS b/qt5-qmake/tuxboot/DETAILS
new file mode 100755
index 0000000000..cca860757a
--- /dev/null
+++ b/qt5-qmake/tuxboot/DETAILS
@@ -0,0 +1,22 @@
+ SPELL=tuxboot
+ VERSION=0.8
+ SOURCE="$SPELL-$VERSION.src.tar.gz"
+ SOURCE_URL[0]="http://downloads.sourceforge.net/sourceforge/project/$SPELL/$VERSION/source/$SOURCE"
+ SOURCE_HASH=sha512:2f6402fa850760c5c05ca14587957e88da85c9c836058a13c7baee9c8df15f78a7216fe88b77a71d30182506cbe520de5a447531860234d5676e6a3c4213bd8e
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="http://tuxboot.org/"
+ LICENSE[0]="GPL"
+ ENTERED=20150910
+ KEYWORDS=""
+ SHORT="To create bootable Live USB drives"
+cat << EOF
+Tuxboot helps you to create a bootable Live USB drive for Clonezilla live,
+DRBL live, GParted live and Tux2live. It is modified from UNetbootin and
+runs on both MS Windows and GNU/Linux. You can choose to download the latest
+version of Clonezilla live, DRBL live, or GParted live ISO/zip file then
+create the live USB. Features:
+
+Support Clonezilla live, DRBL live, GParted live and Tux2live. Tuxboot uses
+the syslinux in the ISO/zip file to make your USB drive bootable, so it is
+compatible with the same version of syslinux boot menu in the ISO/zip file.
+EOF
diff --git a/qt5-qmake/tuxboot/HISTORY b/qt5-qmake/tuxboot/HISTORY
new file mode 100644
index 0000000000..917648ea3e
--- /dev/null
+++ b/qt5-qmake/tuxboot/HISTORY
@@ -0,0 +1,8 @@
+2019-01-05 Treeve Jelbert <treeve@sourcemage.org>
+ * PRE_BUILD: apply patch
+ * patches/*: added
+ * BUILD: deleted
+ * DEPENDS: qt5 stuff
+
+2015-09-10 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: spell created
diff --git a/qt5-qmake/tuxboot/INSTALL b/qt5-qmake/tuxboot/INSTALL
new file mode 100755
index 0000000000..34ab88ed39
--- /dev/null
+++ b/qt5-qmake/tuxboot/INSTALL
@@ -0,0 +1,2 @@
+install -m755 -o root -g root ${SOURCE_DIRECTORY}/${SPELL} \
+ ${INSTALL_ROOT}/usr/bin
diff --git a/qt5-qmake/tuxboot/PRE_BUILD b/qt5-qmake/tuxboot/PRE_BUILD
new file mode 100755
index 0000000000..922c0ab256
--- /dev/null
+++ b/qt5-qmake/tuxboot/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+apply_patch_dir patches
diff --git a/qt5-qmake/tuxboot/patches/0001-build-with-qt5.patch b/qt5-qmake/tuxboot/patches/0001-build-with-qt5.patch
new file mode 100644
index 0000000000..59490974a6
--- /dev/null
+++ b/qt5-qmake/tuxboot/patches/0001-build-with-qt5.patch
@@ -0,0 +1,97 @@
+From d3f43ead38eac2a1ca2542b73c2e8615bc1067f5 Mon Sep 17 00:00:00 2001
+From: Treeve Jelbert <treeve@sourcemage.org>
+Date: Sat, 5 Jan 2019 21:34:09 +0100
+Subject: [PATCH] build with qt5
+
+---
+ tuxboot.cpp | 4 ++--
+ tuxboot.h | 16 ++++++++++++----
+ tuxboot.pro | 13 ++++++-------
+ 3 files changed, 20 insertions(+), 13 deletions(-)
+
+diff --git a/tuxboot.cpp b/tuxboot.cpp
+index 896246b..18bd4d4 100644
+--- a/tuxboot.cpp
++++ b/tuxboot.cpp
+@@ -2897,11 +2897,11 @@ int tuxboot::letterToNumber(QChar lettertoconvert)
+ {
+ if (lettertoconvert.isLower())
+ {
+- return static_cast<int>(lettertoconvert.toAscii() - 'a');
++ return static_cast<int>(lettertoconvert.toLatin1() - 'a');
+ }
+ if (lettertoconvert.isUpper())
+ {
+- return static_cast<int>(lettertoconvert.toAscii() - 'A');
++ return static_cast<int>(lettertoconvert.toLatin1() - 'A');
+ }
+ else
+ {
+diff --git a/tuxboot.h b/tuxboot.h
+index 1cdc958..cb327b7 100644
+--- a/tuxboot.h
++++ b/tuxboot.h
+@@ -10,12 +10,20 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
+ #ifndef tuxboot_H
+ #define tuxboot_H
+
+-#include <QtCore>
+-#include <QtGui>
+-#include <QtNetwork>
++#include <QMessageBox>
+ #include <time.h>
++#include <QDir>
+ #include <QFile>
+-//#include <QtDebug>
++#include <QFileDialog>
++#include <QProcess>
++#include <QProgressDialog>
++#include <QSettings>
++#include <QThread>
++#include <QTextStream>
++#include <QTranslator>
++
++#include <QtFtp>
++#include <QtHttp>
+
+ #include "ui_tuxboot.h"
+ #include "version.h"
+diff --git a/tuxboot.pro b/tuxboot.pro
+index 8ff20d0..5dd9001 100644
+--- a/tuxboot.pro
++++ b/tuxboot.pro
+@@ -8,7 +8,7 @@ QMAKE_LFLAGS_RELEASE += -Wl,-z,relro
+ }
+ DEPENDPATH += .
+ INCLUDEPATH += .
+-CONFIG += release static
++CONFIG += release shared
+ HEADERS += tuxboot.h
+ FORMS += tuxboot.ui
+ SOURCES += main.cpp \
+@@ -16,8 +16,11 @@ SOURCES += main.cpp \
+ distrolst.cpp \
+ distrover.cpp
+ QT += core \
++ ftp \
++ http \
+ gui \
+- network
++ network \
++ widgets
+ TRANSLATIONS += i18n/tuxboot.ts \
+ i18n/tuxboot_am.ts \
+ i18n/tuxboot_ar.ts \
+@@ -62,8 +65,4 @@ TRANSLATIONS += i18n/tuxboot.ts \
+ i18n/tuxboot_sl.ts \
+ i18n/tuxboot_sv.ts \
+ i18n/tuxboot_pl.ts
+-RESOURCES += tuxboot.qrc
+-win32 {
+- RESOURCES += tuxboot-windows.qrc
+- RC_FILE = embedfiles/tuxboot-win.rc
+-}
++DEFINES += NOSTATIC
+--
+2.20.1
+