diff --git a/x11-packages/debpac/build.sh b/x11-packages/debpac/build.sh new file mode 100644 index 000000000..5514825f5 --- /dev/null +++ b/x11-packages/debpac/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/ThiBsc/debpac +TERMUX_PKG_DESCRIPTION="A Debian package creator assistant" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="Yisus7u7 " +TERMUX_PKG_VERSION=1.7 +TERMUX_PKG_SRCURL="https://github.com/ThiBsc/debpac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256=402f9dfcc739fb64666832f1a0d5b47295c900a22232150af4cc069b420515c9 +TERMUX_PKG_DEPENDS="qt5-qtbase, qt5-qtsvg" +TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_configure () { + "${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \ + -spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" \ + PREFIX="${TERMUX_PREFIX}" +} + +termux_step_make_install () { + cd ${TERMUX_PKG_SRCDIR} + install -Dm700 ${TERMUX_PREFIX}/bin ./debpac +} diff --git a/x11-packages/debpac/debpac.pro.patch b/x11-packages/debpac/debpac.pro.patch new file mode 100644 index 000000000..1d2039e8a --- /dev/null +++ b/x11-packages/debpac/debpac.pro.patch @@ -0,0 +1,13 @@ +diff --git a/debpac.pro b/debpac.pro +index 96c2353..dac466c 100644 +--- a/debpac.pro ++++ b/debpac.pro +@@ -5,7 +5,7 @@ + #------------------------------------------------- + + QT += core gui +- ++DEFINES += USE_TERMUX_PATH + greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + + QMAKE_CXXFLAGS += -std=c++11