[arch-commits] Commit in vte3/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Mar 7 23:06:47 UTC 2020


    Date: Saturday, March 7, 2020 @ 23:06:47
  Author: heftig
Revision: 376913

0.60.0-1

Modified:
  vte3/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++++++++-----------
 1 file changed, 22 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-07 22:37:00 UTC (rev 376912)
+++ PKGBUILD	2020-03-07 23:06:47 UTC (rev 376913)
@@ -3,16 +3,15 @@
 
 pkgbase=vte3
 pkgname=(vte3 vte-common)
-pkgver=0.58.3
+pkgver=0.60.0
 pkgrel=1
-pkgdesc="Virtual Terminal Emulator widget for use with GTK3"
+pkgdesc="Virtual Terminal Emulator widget"
 url="https://wiki.gnome.org/Apps/Terminal/VTE"
 arch=(x86_64)
 license=(LGPL)
-options=(!emptydirs)
-depends=(gtk3 pcre2 gnutls fribidi)
+depends=(gtk3 pcre2 gnutls fribidi systemd-libs)
 makedepends=(gobject-introspection vala git gtk-doc gperf meson)
-_commit=73f9e209f70050ea88ed3d80e819ea1a04c5a6e1  # tags/0.58.3^0
+_commit=bf56194f78fc13a99023358efb6f7af0f228240c  # tags/0.60.0^0
 source=("git+https://gitlab.gnome.org/GNOME/vte.git#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -26,7 +25,7 @@
 }
 
 build() {
-  arch-meson vte build -D docs=true
+  arch-meson vte build -D docs=true -D b_lto=false
   ninja -C build
 }
 
@@ -34,19 +33,31 @@
   meson test -C build --print-errorlogs
 }
 
-package_vte3(){
+_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_vte3() {
   depends+=(vte-common)
+  provides+=(libvte-2.91.so)
 
   DESTDIR="$pkgdir" meson install -C build
 
-  mv "$pkgdir/etc/profile.d/vte.sh" "$srcdir"
+### Split vte-common
+  _pick vte-common "$pkgdir"/etc/profile.d
+  _pick vte-common "$pkgdir"/usr/lib/{systemd,vte-urlencode-cwd}
 }
 
 package_vte-common() {
-  pkgdesc="Common files used by vte and vte3"
+  pkgdesc="Files shared by VTE libraries"
   depends=(sh)
-
-  install -Dt "$pkgdir/etc/profile.d" -m644 vte.sh
+  mv vte-common/* "$pkgdir"
 }
 
 # vim:set sw=2 et:



More information about the arch-commits mailing list