description="GNOME GUI client to view git repositories"
url="https://wiki.gnome.org/Apps/Gitg"

packager="spiky <spiky@nutyx.org>"
contributors=""

makedepends=(git meson gobject-introspection vala python-gobject)
run=(glib gtk3 gtksourceview4 gobject-introspection libgit2-glib
         libgee json-glib gsettings-desktop-schemas libpeas gspell libdazzle
         libsecret libxml2)
set=(gnome)

name=gitg
version=41
release=2

source=(https://download.gnome.org/sources/gitg/41/$name-$version.tar.xz
        41-fix-build-with-meson-0.61.1.patch)

prepare() {
cd $name-$version
find . -name meson.build | xargs sed -i '/merge_file/{n;d}'
}

build=meson

package() {
  python -m compileall -d /usr/lib $PKG/usr/lib
  python -O -m compileall -d /usr/lib $PKG/usr/lib
}
