From f2dd71bf95b2240449cca9ce729025fc3f38306d Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 17 Jul 2025 13:40:34 +0300 Subject: [PATCH] Fix compilation error and add gtk-update-icon-cache as dependency --- pkg.info | 3 ++- source.sh | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pkg.info b/pkg.info index c104011..04fb9ae 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,10 @@ name: gtk2 description: GObject-based multi-platform GUI toolkit version 2 version: 2.24.33 +revision: 2 url: https://www.gtk.org/ license: LGPL2.1-or-later architecture: any -depends: ["at-spi2-core","cairo","fontconfig","gdk-pixbuf","glib","glibc","libx11","libxcomposite","libxcursor","libxdamage","libxext","libxfixes","libxi","libxinerama","libxrandr","libxrender","pango","shared-mime-info"] +depends: ["at-spi2-core","cairo","fontconfig","gdk-pixbuf","glib","glibc","gtk-update-icon-cache","libx11","libxcomposite","libxcursor","libxdamage","libxext","libxfixes","libxi","libxinerama","libxrandr","libxrender","pango","shared-mime-info"] make_depends: ["gobject-introspection"] type: source diff --git a/source.sh b/source.sh index e4a3ee2..36cd0da 100644 --- a/source.sh +++ b/source.sh @@ -16,7 +16,8 @@ prepare() { # This function is used to compile the source code build() { sed -e 's#l \(gtk-.*\).sgml#& -o \1#' -i docs/{faq,tutorial}/Makefile.in - + + CFLAGS+=" -Wno-error=implicit-int -Wno-error=incompatible-pointer-types" ./configure --prefix=/usr --sysconfdir=/etc make } @@ -26,7 +27,12 @@ build() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install BPM hooks install -Dm644 "$BPM_WORKDIR"/*.bpmhook -t "$BPM_OUTPUT"/var/lib/bpm/hooks/ + # Remove gtk-update-icon-cache binary + rm "$BPM_OUTPUT"/usr/bin/gtk-update-icon-cache + + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gtk2/COPYING }