git » graphene.git » main » tree

[main] / PKGBUILD

# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
 
pkgname=graphene
pkgver=1.10.8
pkgrel=2
pkgdesc="A thin layer of graphic data types"
url="https://ebassi.github.io/graphene/"
arch=(armv7h)
license=(MIT)
makedepends=(git gtk-doc gobject-introspection meson glib2)
#checkdepends=(python-gobject python-tappy)
_commit=4e2578450809c2099400cf85caf18eafcd7100aa  # tags/1.10.8^0
source=("git+https://github.com/ebassi/graphene#commit=$_commit"
        "git+https://github.com/ebassi/mutest"
        no-installed-tests.diff)
sha256sums=('SKIP'
            'SKIP'
            'fd7c41b25920077158d7de77f5d073e3a5a215c4d96c3b9bd016ffda615be4c4')

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

prepare() {
  cd graphene

  # Don't install tests
  git apply -3 ../no-installed-tests.diff

  git config --global protocol.file.allow always
  git submodule init
  git submodule set-url subprojects/mutest "$srcdir/mutest"
  git submodule update
}

build() {
  # NEON support caused alignment trap in gtk4 
  # (trying to vst1.64 with bad align)
  arch-meson graphene build \
    -D gtk_doc=true \
    -D installed_tests=false \
    -D arm_neon=false \

  meson compile -C build
}

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

package() {
  depends=(libg{lib,object}-2.0.so)
  provides=(libgraphene-1.0.so)

  meson install -C build --destdir "$pkgdir"
  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 graphene/LICENSE.txt
}

# vim:set sw=2 et: