2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
|
|
|
|
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.gtk.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="GObject-based multi-platform GUI toolkit (legacy)"
|
|
|
|
TERMUX_PKG_VERSION=2.24.32
|
2018-10-06 14:34:11 +02:00
|
|
|
TERMUX_PKG_REVISION=7
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/GNOME/gtk/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=961678c64ad986029befd7bdd8ed3e3849e2c5e54d24affbc7d49758245c87fa
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
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_DEPENDS="adwaita-icon-theme, atk, coreutils, desktop-file-utils, glib-bin, gtk-update-icon-cache, libcairo-x, librsvg, libxcomposite, libxcursor, libxdamage, libxi, libxinerama, libxrandr, pango-x, shared-mime-info"
|
|
|
|
TERMUX_PKG_CONFLICTS="libgtk2"
|
|
|
|
TERMUX_PKG_REPLACES="libgtk2"
|
|
|
|
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--enable-shm
|
|
|
|
--enable-xkb
|
|
|
|
--enable-xinerama
|
|
|
|
--disable-glibtest
|
|
|
|
--disable-cups
|
|
|
|
--disable-papi
|
|
|
|
--enable-introspection=no
|
|
|
|
"
|
|
|
|
|
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
|
|
|
## 1. gtk-update-icon-cache is subpackage of 'gtk3'
|
2018-10-02 21:41:00 +02:00
|
|
|
## 2. locales are not supported by Termux and wasting space
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
bin/gtk-update-icon-cache
|
|
|
|
lib/locale
|
|
|
|
"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
export LIBS="-landroid-shmem"
|
|
|
|
export LDFLAGS="${LDFLAGS} -landroid-shmem"
|
|
|
|
}
|
|
|
|
|
2018-10-06 14:34:11 +02:00
|
|
|
termux_step_create_debscripts() {
|
|
|
|
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
|
|
|
}
|