diff options
author | Shengyu Zhang | 2018-01-14 11:26:28 +0800 |
---|---|---|
committer | Shengyu Zhang | 2018-01-14 11:26:28 +0800 |
commit | ac9ae669102eb1513e5d2f49767e8a7246a910c2 (patch) | |
tree | 0eecf091b53c42b8cf7e8df04ef051f4f62e0f07 /PKGBUILD | |
parent | 91556ee03d754eb525cbc38c2e921d987ede1702 (diff) | |
download | aur-ac9ae669102eb1513e5d2f49767e8a7246a910c2.tar.gz |
upgpkg: gtk3 3.93.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 127 |
1 files changed, 44 insertions, 83 deletions
@@ -1,107 +1,84 @@ -# Maintainer: Dario Ostuni <dario.ostuni@gmail.com> +# Maintainer: Shengyu Zhang <la@archlinuxcn.org> +# Contributor: Dario Ostuni <dario.ostuni@gmail.com> # Based on gtk4-git -pkgbase=gtk4 -pkgname=(gtk4-update-icon-cache gtk4 gtk4-print-backends) -pkgver=3.91.1 -pkgrel=2 +pkgname=gtk4 +pkgver=3.93.0 +pkgrel=1 pkgdesc="GObject-based multi-platform GUI toolkit" arch=('i686' 'x86_64') -url="http://www.gtk.org/" +url="https://www.gtk.org/" license=('LGPL') -depends=('adwaita-icon-theme' +depends=('hicolor-icon-theme' 'at-spi2-atk' - 'atk' - 'cairo' + 'atk>=2.15.1' 'dconf' - 'desktop-file-utils' - 'glib2' - 'gdk-pixbuf2' - 'json-glib' - 'libcups' - 'libepoxy' - 'librsvg' + 'glib2>=2.53.7' + 'libepoxy>=1.4' 'libxcomposite' 'libxcursor' - 'libxdamage' - 'libxi' 'libxinerama' 'libxkbcommon' 'libxrandr' 'mesa' 'pango' - 'shared-mime-info' - 'wayland' - 'wayland-protocols' - 'graphene') + 'wayland>=1.9.91' + 'wayland-protocols>=1.9' + 'graphene>=1.5.1' + 'json-glib' + 'colord' + 'libcups' + 'rest' + 'vulkan-icd-loader' + 'gdk-pixbuf2') makedepends=('gobject-introspection' 'gtk-doc' - 'git' - 'colord' - 'rest' - 'libcups' - 'autoconf-archive') + 'meson' + 'ninja' + 'vulkan-headers') optdepends=('gnome-icon-theme: Default icon theme' - 'gnome-themes-standard: Default widget theme') -backup=('usr/share/gtk-4.0/settings.ini') + 'gnome-themes-standard: Default widget theme' + 'gdk-pixbuf2: An image loading library') source=("https://git.gnome.org/browse/gtk+/snapshot/gtk+-${pkgver}.tar.xz" 'gtk4.install' 'gtk4-query-immodules.hook' 'gtk4-update-icon-cache.hook' 'gtk4-update-icon-cache.script' 'settings.ini') -sha512sums=('de97b3957b6697408277f4551a5428a185a151292f57f1041078b9255d821d5eda9252ea987570063f02596ea3f553b96f9bc4e848b6f9f8091d5a61da760e80' +sha512sums=('759cd1daaeb4269e1873ec4c65849731cf867fcbd38ed2f79fa1fb55b6d5f26f5461adbace5af7e25f5174ae56e1c10a207270415b0a9e187783658ad5423cbd' '5dcb698a15e7d5f4611c9357782d475052944cc71e73351238ffb5dfbe18d1bd1b62289da7f8066cde256c4339de5efa982088f47781876f5d8317f92b87f79f' '1dbcce0a3e17ee05b579613adba25feff692f6626155e91fa6859e5f176753201b5ceffa8c9c7c897cf945aeeb32fbd28affa24050dfc0d65237733964bf28de' - 'abfd73de4faa6f53784182800395aa3c39bb98e15a0eb300fb4142073ff7ce565a0836a2363393b2f132060b5293dbc0c30c380a023f38d5bd39c62cb58389c2' - '5cd50d93bb6bc203438a2a0764bd717409658e124058b18a1da26a21f10ef7564a16f32fc0633a68b45b2e303fa63a5efefeadd6b0bf1d7f474556df8cdb6c58' + '9d3bb80afb3a00dc50402d32476719daaeab017e1a066425bb602316b534d0a9899d48734a84f70af1066ed104df0491264383a34969dfad2ea9828fb41b9b6b' + '805cf12606c738d0442d8af415223d3faada93c933b563b7c4c1d5e0c16d2d21435406add1fcc69300fb2fe534f2d0ddbf50b2c0463fc7462109d0f7802ccef1' '1642d77622d61234e316e8fcbc803a6a5556c606e37e56aa5981ef2f2df85bfa959c31b5d1bff248b340760e1178281cb0d7abdf540c5f7d4b62cb383a67c685') - -prepare() { - cd gtk+-${pkgver} - NOCONFIGURE=1 ./autogen.sh -} +install="gtk4.install" build() { cd gtk+-${pkgver} - CXX=/bin/false ./configure --prefix=/usr \ + meson --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --disable-schemas-compile \ - --enable-x11-backend \ - --enable-broadway-backend \ - --enable-wayland-backend \ - --disable-gtk-doc + --libdir=/usr/lib \ + -Denable-broadway-backend=true \ + -Denable-vulkan=yes \ + _build . - # https://bugzilla.gnome.org/show_bug.cgi?id=655517 - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + cd _build - make + ninja } -package_gtk4() { - depends+=(gtk-update-icon-cache) - install="gtk4.install" - - cd gtk+-${pkgver} - - make DESTDIR="$pkgdir" install +package() { + cd gtk+-${pkgver}/_build - install -Dm644 "../settings.ini" "$pkgdir/usr/share/gtk-4.0/settings.ini" - install -Dm644 ../gtk4-query-immodules.hook "$pkgdir/usr/share/libalpm/hooks/gtk4-query-immodules.hook" + DESTDIR="$pkgdir" ninja install - rm "$pkgdir/usr/bin/gtk4-update-icon-cache" - - cd "$pkgdir" - for _f in usr/lib/*/*/printbackends/*; do - case $_f in - *-file.so|*-lpr.so) continue;; - esac - - mkdir -p "$srcdir/print-backends/${_f%/*}" - mv "$_f" "$srcdir/print-backends/$_f" - done + install -Dm 644 "../../settings.ini" "$pkgdir"/usr/share/gtk-4.0/settings.ini + install -Dm 644 "../../gtk4-query-immodules.hook" "$pkgdir"/usr/share/libalpm/hooks/gtk4-query-immodules.hook + install -D "gtk/gtk4-update-icon-cache" "$pkgdir"/usr/bin/gtk4-update-icon-cache + install -Dm 644 "../../gtk4-update-icon-cache.hook" "$pkgdir"/usr/share/libalpm/hooks/gtk4-update-icon-cache.hook + install -Dm 755 "../../gtk4-update-icon-cache.script" "$pkgdir"/usr/share/libalpm/scripts/gtk4-update-icon-cache # Remove conflicts with gtk3 rm -f "$pkgdir/usr/share/gettext/its/gtkbuilder.its" @@ -110,22 +87,6 @@ package_gtk4() { rm -f "$pkgdir/usr/share/glib-2.0/schemas/org.gtk.Settings.ColorChooser.gschema.xml" rm -f "$pkgdir/usr/share/glib-2.0/schemas/org.gtk.Settings.Debug.gschema.xml" rm -f "$pkgdir/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml" + rm -f "$pkgdir/usr/share/glib-2.0/schemas/org.gtk.Settings.EmojiChooser.gschema.xml" rm -f "$pkgdir/usr/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml" } - -package_gtk4-update-icon-cache() { - pkgdesc="GTK+ icon cache updater" - depends=(gdk-pixbuf2 hicolor-icon-theme) - - cd gtk+-${pkgver} - install -D gtk/gtk4-update-icon-cache "$pkgdir/usr/bin/gtk4-update-icon-cache" - install -Dm644 ../gtk4-update-icon-cache.hook "$pkgdir/usr/share/libalpm/hooks/gtk4-update-icon-cache.hook" - install -D ../gtk4-update-icon-cache.script "$pkgdir/usr/share/libalpm/scripts/gtk4-update-icon-cache" -} - -package_gtk4-print-backends() { - pkgdesc="Print backends for GTK4" - depends=(gtk4 rest colord libcups) - - mv print-backends/* "$pkgdir" -} |