mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-22 03:30:17 +00:00
Update repo
This commit is contained in:
34
disabled-packages/gtk-recordmydesktop/build.sh
Normal file
34
disabled-packages/gtk-recordmydesktop/build.sh
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# x11-packages
|
||||||
|
TERMUX_PKG_HOMEPAGE=https://github.com/Enselic/recordmydesktop
|
||||||
|
TERMUX_PKG_DESCRIPTION="GTK frontend to recordMyDesktop"
|
||||||
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
|
TERMUX_PKG_VERSION=0.4.0
|
||||||
|
TERMUX_PKG_SRCURL=https://github.com/Enselic/recordmydesktop/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||||
|
TERMUX_PKG_SHA256=69602d32c1be82cd92083152c7c44c0206ca0d6419d76a6144ffcfe07b157a72
|
||||||
|
TERMUX_PKG_DEPENDS="gtk3, pygobject, python, recordmydesktop"
|
||||||
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
|
TERMUX_PKG_RM_AFTER_INSTALL="lib/locale"
|
||||||
|
|
||||||
|
_PYTHON_VERSION=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
||||||
|
|
||||||
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||||
|
am_cv_python_pythondir=$TERMUX_PREFIX/lib/python${_PYTHON_VERSION}/site-packages
|
||||||
|
"
|
||||||
|
|
||||||
|
termux_step_post_get_source() {
|
||||||
|
TERMUX_PKG_SRCDIR+="/gtk-recordmydesktop"
|
||||||
|
}
|
||||||
|
|
||||||
|
termux_step_pre_configure() {
|
||||||
|
autoreconf -fi
|
||||||
|
|
||||||
|
termux_setup_python_crossenv
|
||||||
|
pushd $TERMUX_PYTHON_CROSSENV_SRCDIR
|
||||||
|
_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python-crossenv-prefix
|
||||||
|
python${_PYTHON_VERSION} -m crossenv \
|
||||||
|
$TERMUX_PREFIX/bin/python${_PYTHON_VERSION} \
|
||||||
|
${_CROSSENV_PREFIX}
|
||||||
|
popd
|
||||||
|
. ${_CROSSENV_PREFIX}/bin/activate
|
||||||
|
}
|
||||||
22
disabled-packages/gtk-recordmydesktop/configure.ac.patch
Normal file
22
disabled-packages/gtk-recordmydesktop/configure.ac.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -46,19 +46,6 @@
|
||||||
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext package name])
|
||||||
|
AM_GLIB_GNU_GETTEXT
|
||||||
|
|
||||||
|
-dnl check for GTK 3 Python bindings
|
||||||
|
-AC_MSG_CHECKING(GTK 3 python bindings)
|
||||||
|
-gtk_prog="
|
||||||
|
-import gi
|
||||||
|
-gi.require_version('Gtk', '3.0')
|
||||||
|
-from gi.repository import Gtk
|
||||||
|
-"
|
||||||
|
-if $PYTHON -c "$gtk_prog"; then
|
||||||
|
- AC_MSG_RESULT(yes)
|
||||||
|
-else
|
||||||
|
- AC_MSG_ERROR(Missing Gtk 3 Python bindings, try sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0)
|
||||||
|
-fi
|
||||||
|
-
|
||||||
|
export PYTHONPATH=$PYGTK_DIR:$PYTHONPATH
|
||||||
|
|
||||||
|
saved_PYTHONPATH=$PYTHONPATH
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/src/rmdConfig.py.in
|
||||||
|
+++ b/src/rmdConfig.py.in
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
0, #reset recording area ,0 on 1 off
|
||||||
|
1, #follow mouse,0 on 1 off
|
||||||
|
1, #quick subsampling,0 on 1 off
|
||||||
|
- "/tmp", #working directory
|
||||||
|
+ "@TERMUX_PREFIX@/tmp", #working directory
|
||||||
|
1, #on the fly encoding,0 on 1 off
|
||||||
|
0, #zero compression,0 on 1 off
|
||||||
|
False, #overwrite existing files
|
||||||
Reference in New Issue
Block a user