mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
extra/gtk4 to 4.2.0-1
This commit is contained in:
parent
47fb2077b6
commit
b2c2f55e35
1 changed files with 19 additions and 10 deletions
|
@ -1,13 +1,11 @@
|
|||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - remove makedepends on pandoc
|
||||
# - set gtk_doc=false, comment doc build
|
||||
# - use github mirror, more reliable
|
||||
|
||||
pkgbase=gtk4
|
||||
pkgname=(gtk4 gtk-update-icon-cache)
|
||||
pkgver=4.0.3+61+gcb05be0aa5
|
||||
pkgname=(gtk4 gtk-update-icon-cache gtk4-docs)
|
||||
pkgver=4.2.0
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="GObject-based multi-platform GUI toolkit"
|
||||
|
@ -20,10 +18,10 @@ depends=(glib2 cairo pango fribidi gdk-pixbuf2 libepoxy libgl libegl harfbuzz
|
|||
vulkan-icd-loader vulkan-headers libcloudproviders libcups rest
|
||||
json-glib ffmpeg gst-plugins-bad-libs librsvg dconf shared-mime-info
|
||||
desktop-file-utils adwaita-icon-theme cantarell-fonts)
|
||||
makedepends=(git meson gtk-doc glib2-docs python shaderc sassc
|
||||
gobject-introspection)
|
||||
makedepends=(git meson gi-docgen shaderc sassc gobject-introspection
|
||||
docbook-xsl)
|
||||
license=(LGPL)
|
||||
_commit=cb05be0aa5e954f6e1a5bd76c37c610614f719c0 # gtk-4.0
|
||||
_commit=ccbbc2f2babcfaee88d8d8040938ca6bf39d05b6 # tags/4.2.0^0
|
||||
source=("git+https://github.com/GNOME/gtk.git#commit=$_commit"
|
||||
gtk-update-icon-cache.{hook,script} gtk4-querymodules.hook)
|
||||
sha256sums=('SKIP'
|
||||
|
@ -41,16 +39,17 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
CFLAGS+=" -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
|
||||
# https://gitlab.gnome.org/GNOME/gtk/-/commit/df4b564d69cc7d2e751537eff61259b36f37e9e5
|
||||
CFLAGS+=" -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT"
|
||||
|
||||
arch-meson gtk build \
|
||||
-D broadway_backend=true \
|
||||
-D cloudproviders=enabled \
|
||||
-D tracker=enabled \
|
||||
-D colord=enabled \
|
||||
-D gtk_doc=false \
|
||||
-D gtk_doc=true \
|
||||
-D man-pages=true
|
||||
meson compile -C build
|
||||
#ninja -C build g{d,s,t}k4-doc
|
||||
}
|
||||
|
||||
package_gtk4() {
|
||||
|
@ -72,6 +71,10 @@ END
|
|||
mkdir -p guic/usr/{bin,share/man/man1}
|
||||
mv {"$pkgdir",guic}/usr/bin/gtk4-update-icon-cache
|
||||
mv {"$pkgdir",guic}/usr/share/man/man1/gtk4-update-icon-cache.1
|
||||
|
||||
# split docs
|
||||
mkdir -p doc/usr/share
|
||||
mv {"$pkgdir",doc}/usr/share/doc
|
||||
}
|
||||
|
||||
package_gtk-update-icon-cache() {
|
||||
|
@ -86,4 +89,10 @@ package_gtk-update-icon-cache() {
|
|||
install -D gtk-update-icon-cache.script "$pkgdir/usr/share/libalpm/scripts/gtk-update-icon-cache"
|
||||
}
|
||||
|
||||
package_gtk4-docs() {
|
||||
pkgdesc+=" (documentation)"
|
||||
depends=()
|
||||
mv -t "$pkgdir" doc/*
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
Loading…
Reference in a new issue