2018-11-29 13:00:47 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gtk.org/
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="GObject-based multi-platform GUI toolkit"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
2021-08-25 12:47:33 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-03-29 21:47:29 +02:00
|
|
|
TERMUX_PKG_VERSION=3.24.33
|
2022-04-05 06:48:20 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-01-13 15:18:55 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://gitlab.gnome.org/GNOME/gtk/-/archive/$TERMUX_PKG_VERSION/gtk-$TERMUX_PKG_VERSION.tar.gz
|
2022-03-29 21:47:29 +02:00
|
|
|
TERMUX_PKG_SHA256=c43a6082093be3e0d771f595df5669d594ae1c9c6dedbfc429fada0da80431d5
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
2022-03-29 21:47:29 +02:00
|
|
|
TERMUX_PKG_DEPENDS="adwaita-icon-theme, atk, coreutils, desktop-file-utils, fontconfig, freetype, fribidi, gdk-pixbuf, glib, glib-bin, gtk-update-icon-cache, harfbuzz, libcairo, libepoxy, libxcomposite, libxcursor, libxdamage, libxfixes, libxi, libxinerama, libxrandr, pango, shared-mime-info, ttf-dejavu"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="libgtk3"
|
|
|
|
TERMUX_PKG_REPLACES="libgtk3"
|
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-introspection
|
|
|
|
--enable-xinerama
|
|
|
|
--enable-xfixes
|
|
|
|
--enable-xcomposite
|
|
|
|
--enable-xdamage
|
2021-10-25 18:21:53 +02:00
|
|
|
--enable-x11-backend
|
|
|
|
--disable-wayland-backend
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
"
|
|
|
|
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/glib-2.0/schemas/gschemas.compiled"
|
|
|
|
|
2018-09-28 19:16:08 +02:00
|
|
|
termux_step_pre_configure() {
|
2019-01-21 17:50:21 +01:00
|
|
|
# prevent permission denied on build scripts
|
|
|
|
find . -type f | xargs chmod u+x
|
2018-11-06 10:54:55 +01:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
# prevent build failure by using host's glib-compile-resources.
|
|
|
|
cp -f /usr/bin/glib-compile-resources "${TERMUX_PREFIX}/bin/glib-compile-resources"
|
2019-01-24 00:46:35 +01:00
|
|
|
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|
|
|
|
|
2018-11-09 15:24:39 +01:00
|
|
|
termux_step_post_massage() {
|
2019-01-21 17:50:21 +01:00
|
|
|
# don't store updated glib-compile-resources.
|
|
|
|
rm -f "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/bin/glib-compile-resources"
|
2018-11-09 15:24:39 +01:00
|
|
|
}
|
|
|
|
|
2018-09-28 19:16:08 +02:00
|
|
|
termux_step_create_debscripts() {
|
2019-01-21 17:50:21 +01:00
|
|
|
for i in postinst postrm triggers; do
|
|
|
|
sed \
|
|
|
|
"s|@TERMUX_PREFIX@|${TERMUX_PREFIX}|g" \
|
|
|
|
"${TERMUX_PKG_BUILDER_DIR}/hooks/${i}.in" > ./${i}
|
|
|
|
chmod 755 ./${i}
|
|
|
|
done
|
|
|
|
unset i
|
|
|
|
chmod 644 ./triggers
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|