git » vte3.git » main » tree

[main] / PKGBUILD

# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Fabian Bornschein <fabiscafe@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgbase=vte3
pkgname=(
  vte-common
  vte3
#  vte4
#  vte-docs
)
pkgver=0.76.1
pkgrel=1
pkgdesc="Virtual Terminal Emulator widget"
url="https://wiki.gnome.org/Apps/Terminal/VTE"
arch=(armv7h 'aarch64')
license=(
  # Library
  LGPL-3.0-or-later

  # Demo app, some supporting files
  GPL-3.0-or-later

  # COPYING.XTERM (X11 license) only applies to the disabled SIXEL code
)
depends=(
  cairo
  fribidi
  gcc-libs
  gdk-pixbuf2
  glib2
  glibc
  gnutls
  icu
  lz4
  pango
  pcre2
  systemd
  systemd-libs
)
makedepends=(
  at-spi2-core
 # gi-docgen
  git
  gobject-introspection
  gperf
  gtk3
#  gtk4
  meson
  vala
)
options=(!lto)
source=("git+https://gitlab.gnome.org/GNOME/vte.git#tag=$pkgver")
b2sums=('15a6167ab3b109cf7107d9795e415b56841c31975b284d11a14dac5e3b6ad80a0333b261e5d5e45adfd390ae5822a60cfc27228b4e1cf55bb8cdf8ad81502871')

prepare() {
  cd vte
}

build() {
  local meson_options=(
    -D docs=false
    -D gtk4=false
  )

  arch-meson vte build "${meson_options[@]}"
  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_vte-common() {
  pkgdesc+=" (common files)"
  depends=(glibc)

  meson install -C build --destdir "$pkgdir"

  cd "$pkgdir"

  _pick gtk3 usr/bin/vte-2.91
  _pick gtk3 usr/include/vte-2.91
  _pick gtk3 usr/lib/libvte-2.91.so*
  _pick gtk3 usr/lib/pkgconfig/vte-2.91.pc
  _pick gtk3 usr/lib/girepository-1.0/Vte-2.91.typelib
  _pick gtk3 usr/share/gir-1.0/Vte-2.91.gir
  _pick gtk3 usr/share/glade
  _pick gtk3 usr/share/vala/vapi/vte-2.91.{deps,vapi}

 # _pick gtk4 usr/bin/vte-2.91-gtk4
 # _pick gtk4 usr/include/vte-2.91-gtk4
 # _pick gtk4 usr/lib/libvte-2.91-gtk4.so*
 # _pick gtk4 usr/lib/pkgconfig/vte-2.91-gtk4.pc
 # _pick gtk4 usr/lib/girepository-1.0/Vte-3.91.typelib
 #_pick gtk4 usr/share/gir-1.0/Vte-3.91.gir
 # _pick gtk4 usr/share/vala/vapi/vte-2.91-gtk4.{deps,vapi}

 # _pick docs usr/share/doc
}


package_vte3() {
  pkgdesc+=" (GTK3)"
  depends+=(
    at-spi2-core
    gtk3
    vte-common
  )
  provides+=(libvte-2.91.so)

  mv gtk3/* "$pkgdir"
}

#package_vte4() {
#  pkgdesc+=" (GTK4)"
#  depends+=(
#    gtk4
#    vte-common
#  )
#  provides+=(libvte-2.91-gtk4.so)

#  mv gtk4/* "$pkgdir"
#}

#package_vte-docs() {
#  pkgdesc+=" (documentation)"
#  depends=()

#  mv docs/* "$pkgdir"
#}

# vim:set sw=2 sts=-1 et: