new package: ocs-url
This commit is contained in:
parent
6e8187f8a4
commit
d25ca48893
28
x11-packages/ocs-url/build.sh
Normal file
28
x11-packages/ocs-url/build.sh
Normal file
@ -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
|
||||
}
|
9
x11-packages/ocs-url/scripts-prepare.patch
Normal file
9
x11-packages/ocs-url/scripts-prepare.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user