From d25ca48893073546ce543678ce0b975252c3c8b8 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Tue, 3 May 2022 08:59:16 +0900 Subject: [PATCH] new package: ocs-url --- x11-packages/ocs-url/build.sh | 28 ++++++++++++++++++++++ x11-packages/ocs-url/scripts-prepare.patch | 9 +++++++ 2 files changed, 37 insertions(+) create mode 100644 x11-packages/ocs-url/build.sh create mode 100644 x11-packages/ocs-url/scripts-prepare.patch diff --git a/x11-packages/ocs-url/build.sh b/x11-packages/ocs-url/build.sh new file mode 100644 index 000000000..c4dc7dc22 --- /dev/null +++ b/x11-packages/ocs-url/build.sh @@ -0,0 +1,28 @@ +TERMUX_PKG_HOMEPAGE=https://www.opendesktop.org/p/1136805/ +TERMUX_PKG_DESCRIPTION="An install helper program for items served via OpenCollaborationServices (ocs://)" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=3.1.0 +TERMUX_PKG_SRCURL=https://www.opencode.net/dfn2/ocs-url.git +TERMUX_PKG_GIT_BRANCH=release-${TERMUX_PKG_VERSION} +TERMUX_PKG_DEPENDS="libc++, qt5-qtbase, qt5-qtdeclarative, qt5-qtsvg" +TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qtdeclarative-cross-tools" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +PREFIX=$TERMUX_PREFIX +" + +termux_step_pre_configure() { + ./scripts/prepare +} + +termux_step_configure() { + "${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \ + -spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" \ + ${TERMUX_PKG_EXTRA_CONFIGURE_ARGS} +} + +termux_step_post_make_install() { + install -Dm600 -t $TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME \ + $TERMUX_PKG_SRCDIR/README.md +} diff --git a/x11-packages/ocs-url/scripts-prepare.patch b/x11-packages/ocs-url/scripts-prepare.patch new file mode 100644 index 000000000..588e5e91b --- /dev/null +++ b/x11-packages/ocs-url/scripts-prepare.patch @@ -0,0 +1,9 @@ +--- a/scripts/prepare ++++ b/scripts/prepare +@@ -3,5 +3,5 @@ + PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)" + + if [[ ! -d "${PROJDIR}/lib/qtil" ]]; then +- git clone https://github.com/akiraohgaki/qtil.git -b release-0.4.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil" ++ git clone https://github.com/akiraohgaki/qtil.git -b v0.4.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil" + fi