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
+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
}