git » libpanel.git » main » tree

[main] / PKGBUILD

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

pkgbase=libpanel
pkgname=(
  libpanel
 # libpanel-docs
)
pkgver=1.6.0
pkgrel=1
pkgdesc="Dock/panel library for GTK 4"
url="https://gitlab.gnome.org/GNOME/libpanel"
arch=(armv7h)
license=(LGPL-3.0-or-later)
depends=(
  cairo
  glib2
  graphene
  gtk4
  hicolor-icon-theme
  libadwaita
)
makedepends=(
  gi-docgen
  git
  gobject-introspection
  meson
  vala
)
_commit=28a0203968d7e4a9258116a4342becfb2301c9da  # tags/1.6.0^0
source=("git+https://gitlab.gnome.org/GNOME/libpanel.git#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd $pkgbase
  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

build() {
  local meson_options=(
    -D install-examples=true
     -D docs=disabled
  )

  arch-meson $pkgbase build "${meson_options[@]}"
  meson compile -C build
}

#check() {
#  meson test -C build --print-errorlogs
#}

package_libpanel() {
  provides=(libpanel-1.so)

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

  #mkdir -p doc/usr/share
  #mv {"$pkgdir",doc}/usr/share/doc
}

package_libpanel-docs() {
  pkgdesc+=" (documentation)"
  depends=()

  mv doc/* "$pkgdir"
}

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