Fix compilation error and add gtk-update-icon-cache as dependency
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
name: gtk2
|
name: gtk2
|
||||||
description: GObject-based multi-platform GUI toolkit version 2
|
description: GObject-based multi-platform GUI toolkit version 2
|
||||||
version: 2.24.33
|
version: 2.24.33
|
||||||
|
revision: 2
|
||||||
url: https://www.gtk.org/
|
url: https://www.gtk.org/
|
||||||
license: LGPL2.1-or-later
|
license: LGPL2.1-or-later
|
||||||
architecture: any
|
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"]
|
make_depends: ["gobject-introspection"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ prepare() {
|
|||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
sed -e 's#l \(gtk-.*\).sgml#& -o \1#' -i docs/{faq,tutorial}/Makefile.in
|
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
|
./configure --prefix=/usr --sysconfdir=/etc
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
@@ -26,7 +27,12 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install BPM hooks
|
||||||
install -Dm644 "$BPM_WORKDIR"/*.bpmhook -t "$BPM_OUTPUT"/var/lib/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
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gtk2/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user