Fix compilation error and add gtk-update-icon-cache as dependency

This commit is contained in:
2025-07-17 13:40:34 +03:00
parent 60a3ca4511
commit f2dd71bf95
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -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
+7 -1
View File
@@ -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
}