termux-packages/x11-packages/gtk3/build.sh

52 lines
1.7 KiB
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://www.gtk.org/
2018-09-10 00:42:26 +02:00
TERMUX_PKG_DESCRIPTION="GObject-based multi-platform GUI toolkit"
TERMUX_PKG_LICENSE="LGPL-2.0"
2019-05-17 00:18:48 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
2019-05-20 00:07:43 +02:00
TERMUX_PKG_VERSION=3.24.8
2019-05-25 16:12:18 +02:00
TERMUX_PKG_REVISION=1
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://github.com/GNOME/gtk/archive/${TERMUX_PKG_VERSION}.tar.gz
2019-05-20 00:07:43 +02:00
TERMUX_PKG_SHA256=c85f5dc5dcef00dfbb8df0df37964508a475bfe047628b417e13c07372112752
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="adwaita-icon-theme, atk, coreutils, desktop-file-utils, gdk-pixbuf, glib, glib-bin, gtk-update-icon-cache, libcairo-x, libepoxy, libxcomposite, libxcursor, libxdamage, libxfixes, libxi, libxinerama, libxrandr, pango-x, shared-mime-info"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
TERMUX_PKG_DEVPACKAGE_DEPENDS="xorgproto, pango-x-dev"
TERMUX_PKG_CONFLICTS="libgtk3"
TERMUX_PKG_REPLACES="libgtk3"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-introspection
--enable-xinerama
--enable-xfixes
--enable-xcomposite
--enable-xdamage
"
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() {
# prevent permission denied on build scripts
find . -type f | xargs chmod u+x
# prevent build failure by using host's glib-compile-resources.
cp -f /usr/bin/glib-compile-resources "${TERMUX_PREFIX}/bin/glib-compile-resources"
NOCONFIGURE=1 ./autogen.sh
2018-09-10 00:42:26 +02:00
}
termux_step_post_massage() {
# don't store updated glib-compile-resources.
rm -f "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/bin/glib-compile-resources"
}
2018-09-28 19:16:08 +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
}