diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-09-11 22:29:51 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2019-09-27 22:46:58 +0200 |
commit | 079a0020bf71257d4e782f3f39bdf5adef58168a (patch) | |
tree | dc7cb7913e11ac9fb159298ae2eab431980f8336 | |
parent | f44372994fab1dcc7fd5ea53f79e2836afb9b5a3 (diff) | |
download | aports-079a0020bf71257d4e782f3f39bdf5adef58168a.tar.bz2 aports-079a0020bf71257d4e782f3f39bdf5adef58168a.tar.xz |
testing/gtk4.0: new aport
-rw-r--r-- | testing/gtk4.0/APKBUILD | 105 | ||||
-rw-r--r-- | testing/gtk4.0/gtk4.0.post-deinstall | 4 | ||||
-rw-r--r-- | testing/gtk4.0/gtk4.0.post-install | 5 | ||||
l--------- | testing/gtk4.0/gtk4.0.post-upgrade | 1 |
4 files changed, 115 insertions, 0 deletions
diff --git a/testing/gtk4.0/APKBUILD b/testing/gtk4.0/APKBUILD new file mode 100644 index 0000000000..040b1d2057 --- /dev/null +++ b/testing/gtk4.0/APKBUILD @@ -0,0 +1,105 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +pkgname=gtk4.0 +pkgver=3.96.0 +pkgrel=0 +pkgdesc="The GTK Toolkit (v4)" +url="https://www.gtk.org/" +install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall" +arch="all" +options="!check" # Test suite is known to fail upstream +license="LGPL-2.1-or-later" +subpackages="$pkgname-demo $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-dbg" +depends="shared-mime-info gtk-update-icon-cache" + +depends_dev=" + atk-dev + gdk-pixbuf-dev + glib-dev + libepoxy-dev + libxext-dev + libxi-dev + libxinerama-dev + wayland-protocols + wayland-libs-client + wayland-libs-cursor + libxkbcommon-dev + " +makedepends=" + $depends_dev + perl + cups-dev + expat-dev + gettext-dev + gnutls-dev + gobject-introspection-dev + libice-dev + tiff-dev + zlib-dev + at-spi2-atk-dev + cairo-dev + fontconfig-dev + pango-dev + wayland-dev + libx11-dev + libxcomposite-dev + libxcursor-dev + libxdamage-dev + libxfixes-dev + libxrandr-dev + meson + iso-codes-dev + vulkan-loader-dev + sassc + colord-dev + gstreamer-dev + gst-plugins-bad-dev + gtk-doc + graphene-dev + " +source="https://download.gnome.org/sources/gtk/${pkgver%.*}/gtk-$pkgver.tar.xz" + + +builddir="$srcdir/gtk-$pkgver" + +build() { + meson \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --buildtype=release \ + -Dbroadway-backend=true \ + -Dman-pages=true \ + -Ddocumentation=true \ + . output + ninja -C output +} + +package() { + DESTDIR="$pkgdir" ninja -C output install + + # use gtk-update-icon-cache from gtk+2.0 for now. The icon cache is forward + # compatible so this is fine + rm -f "$pkgdir"/usr/bin/gtk-update-icon-cache + rm -f "$pkgdir"/usr/share/man/man1/gtk-update-icon-cache.1 +} + +demo() { + pkgdesc="$pkgdesc (demonstration application)" + install -Dm755 "$pkgdir"/usr/bin/gtk4-demo \ + "$pkgdir"/usr/bin/gtk4-widget-factory \ + "$pkgdir"/usr/bin/gtk4-demo-application \ + -t "$subpkgdir"/usr/bin + install -Dm644 "$pkgdir"/usr/share/gtk-4.0/gtk4builder.rng \ + -t "$subpkgdir"/usr/share/gtk-4.0 + install -Dm644 "$pkgdir"/usr/share/glib-2.0/schemas/org.gtk.Demo4.gschema.xml \ + -t "$subpkgdir"/usr/share/glib-2.0/schemas + install -Dm644 "$pkgdir"/usr/share/applications/org.gtk.WidgetFactory4.desktop \ + "$pkgdir"/usr/share/applications/org.gtk.Demo4.desktop \ + -t "$subpkgdir"/usr/share/applications + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/icons "$subpkgdir"/usr/share +} + +sha512sums="29c9f5ac208279e907afcb92e70e720a6a8c23766281b4f59a2ac8abce045bdce0fbbfa3406a5162915b2abbb09d0e7306c860b270045bccdd34b6842a41c08f gtk-3.96.0.tar.xz" diff --git a/testing/gtk4.0/gtk4.0.post-deinstall b/testing/gtk4.0/gtk4.0.post-deinstall new file mode 100644 index 0000000000..fcdc3d872e --- /dev/null +++ b/testing/gtk4.0/gtk4.0.post-deinstall @@ -0,0 +1,4 @@ +#!/bin/sh + +rm -f etc/gtk-4.0/gtk.immodules +rm -f etc/gtk-4.0/gdk-pixbuf.loaders diff --git a/testing/gtk4.0/gtk4.0.post-install b/testing/gtk4.0/gtk4.0.post-install new file mode 100644 index 0000000000..cca0f096ba --- /dev/null +++ b/testing/gtk4.0/gtk4.0.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +usr/bin/gtk-query-immodules-4.0 > etc/gtk-4.0/gtk.immodules +usr/bin/gdk-pixbuf-query-loaders > etc/gtk-4.0/gdk-pixbuf.loaders + diff --git a/testing/gtk4.0/gtk4.0.post-upgrade b/testing/gtk4.0/gtk4.0.post-upgrade new file mode 120000 index 0000000000..f8267b591d --- /dev/null +++ b/testing/gtk4.0/gtk4.0.post-upgrade @@ -0,0 +1 @@ +gtk4.0.post-install
\ No newline at end of file |