[arch-commits] Commit in libportal/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Tue Mar 22 00:22:54 UTC 2022
Date: Tuesday, March 22, 2022 @ 00:22:54
Author: heftig
Revision: 440461
archrelease: copy trunk to extra-x86_64
Added:
libportal/repos/extra-x86_64/PKGBUILD
(from rev 440460, libportal/trunk/PKGBUILD)
Deleted:
libportal/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 201 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 102 insertions(+), 99 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-22 00:22:45 UTC (rev 440460)
+++ PKGBUILD 2022-03-22 00:22:54 UTC (rev 440461)
@@ -1,99 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
-
-pkgbase=libportal
-pkgname=(libportal libportal-{gtk3,gtk4,qt5,docs})
-pkgver=0.5
-pkgrel=1
-pkgdesc="GIO-style async APIs for most Flatpak portals"
-url="https://github.com/flatpak/libportal"
-arch=(x86_64)
-license=(LGPL3)
-makedepends=(git meson gi-docgen vala gobject-introspection gtk3 gtk4 qt5-base
- qt5-x11extras gjs)
-_commit=467a397fd7996557f837cdc26ac07c01c62810e5 # tags/0.5^0
-source=("git+https://github.com/flatpak/libportal#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
- cd libportal
- git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
-}
-
-prepare() {
- cd libportal
-}
-
-build() {
- arch-meson libportal build
- meson compile -C build
-}
-
-check() {
- meson test -C build --print-errorlogs
-}
-
-_pick() {
- local p="$1" f d; shift
- for f; do
- d="$srcdir/$p/${f#$pkgdir/}"
- mkdir -p "$(dirname "$d")"
- mv "$f" "$d"
- rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
- done
-}
-
-package_libportal() {
- depends=(libg{lib,object,io}-2.0.so)
- provides=(libportal.so)
-
- meson install -C build --destdir "$pkgdir"
-
- cd "$pkgdir"
-
- _pick gtk3 usr/include/libportal-gtk3
- _pick gtk3 usr/lib{,/pkgconfig}/libportal-gtk3.*
- _pick gtk3 {usr/lib/girepository-1.0,usr/share/gir-1.0}/XdpGtk3-1.0.*
- _pick gtk3 usr/share/vala/vapi/libportal-gtk3.*
-
- _pick gtk4 usr/include/libportal-gtk4
- _pick gtk4 usr/lib{,/pkgconfig}/libportal-gtk4.*
- _pick gtk4 {usr/lib/girepository-1.0,usr/share/gir-1.0}/XdpGtk4-1.0.*
- _pick gtk4 usr/share/vala/vapi/libportal-gtk4.*
-
- _pick qt5 usr/include/libportal-qt5
- _pick qt5 usr/lib{,/pkgconfig}/libportal-qt5.*
-
- _pick docs usr/share/doc
-}
-
-package_libportal-gtk3() {
- pkgdesc+=" - GTK 3 backend"
- depends=(libportal lib{gdk,gtk}-3.so)
- provides=(libportal-gtk3.so)
-
- mv gtk3/* "$pkgdir"
-}
-
-package_libportal-gtk4() {
- pkgdesc+=" - GTK 4 backend"
- depends=(libportal libgtk-4.so)
- provides=(libportal-gtk4.so)
-
- mv gtk4/* "$pkgdir"
-}
-
-package_libportal-qt5() {
- pkgdesc+=" - Qt 5 backend"
- depends=(libportal qt5-base qt5-x11extras)
- provides=(libportal-qt5.so)
-
- mv qt5/* "$pkgdir"
-}
-
-package_libportal-docs() {
- pkgdesc+=" - documentation"
-
- mv docs/* "$pkgdir"
-}
-
-# vim:set sw=2 et:
Copied: libportal/repos/extra-x86_64/PKGBUILD (from rev 440460, libportal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-22 00:22:54 UTC (rev 440461)
@@ -0,0 +1,102 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+
+pkgbase=libportal
+pkgname=(libportal libportal-{gtk3,gtk4,qt5,docs})
+pkgver=0.6
+pkgrel=1
+pkgdesc="GIO-style async APIs for most Flatpak portals"
+url="https://github.com/flatpak/libportal"
+arch=(x86_64)
+license=(LGPL3)
+makedepends=(git meson gi-docgen vala gobject-introspection gtk3 gtk4 qt5-base
+ qt5-x11extras gjs)
+checkdepends=(xorg-server-xvfb)
+options=(debug)
+_commit=13df0b887a7eb7b0f9b14069561a41f62e813155 # tags/0.6
+source=("git+https://github.com/flatpak/libportal#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libportal
+ git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd libportal
+}
+
+build() {
+ arch-meson libportal build
+ meson compile -C build
+}
+
+check() {
+ xvfb-run -s '-nolisten local' \
+ meson test -C build --print-errorlogs
+}
+
+_pick() {
+ local p="$1" f d; shift
+ for f; do
+ d="$srcdir/$p/${f#$pkgdir/}"
+ mkdir -p "$(dirname "$d")"
+ mv "$f" "$d"
+ rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+ done
+}
+
+package_libportal() {
+ depends=(libg{lib,object,io}-2.0.so)
+ provides=(libportal.so)
+
+ meson install -C build --destdir "$pkgdir"
+
+ cd "$pkgdir"
+
+ _pick gtk3 usr/include/libportal-gtk3
+ _pick gtk3 usr/lib{,/pkgconfig}/libportal-gtk3.*
+ _pick gtk3 {usr/lib/girepository-1.0,usr/share/gir-1.0}/XdpGtk3-1.0.*
+ _pick gtk3 usr/share/vala/vapi/libportal-gtk3.*
+
+ _pick gtk4 usr/include/libportal-gtk4
+ _pick gtk4 usr/lib{,/pkgconfig}/libportal-gtk4.*
+ _pick gtk4 {usr/lib/girepository-1.0,usr/share/gir-1.0}/XdpGtk4-1.0.*
+ _pick gtk4 usr/share/vala/vapi/libportal-gtk4.*
+
+ _pick qt5 usr/include/libportal-qt5
+ _pick qt5 usr/lib{,/pkgconfig}/libportal-qt5.*
+
+ _pick docs usr/share/doc
+}
+
+package_libportal-gtk3() {
+ pkgdesc+=" - GTK 3 backend"
+ depends=(libportal lib{gdk,gtk}-3.so)
+ provides=(libportal-gtk3.so)
+
+ mv gtk3/* "$pkgdir"
+}
+
+package_libportal-gtk4() {
+ pkgdesc+=" - GTK 4 backend"
+ depends=(libportal libgtk-4.so)
+ provides=(libportal-gtk4.so)
+
+ mv gtk4/* "$pkgdir"
+}
+
+package_libportal-qt5() {
+ pkgdesc+=" - Qt 5 backend"
+ depends=(libportal qt5-base qt5-x11extras)
+ provides=(libportal-qt5.so)
+
+ mv qt5/* "$pkgdir"
+}
+
+package_libportal-docs() {
+ pkgdesc+=" - documentation"
+
+ mv docs/* "$pkgdir"
+}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list