aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgit2-glib/APKBUILD
blob: 270935212f1333c52bb4454f9968982d4c949d4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgit2-glib
pkgver=0.99.0.1
pkgrel=2
pkgdesc="Glib wrapper library around libgit2"
url="https://wiki.gnome.org/Projects/Libgit2-glib"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="libgit2-dev"
makedepends="py3-gobject3-dev vala gobject-introspection-dev gtk-doc meson $depends_dev"
options="!check" # UTF-8 checks fail in some environments
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/libgit2-glib/${pkgver%.*.*}/libgit2-glib-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="48b34ba84b5315d23d0429a684753c3a64c62086d70a67fdb4dfbf8f2ee883f5a90d7e59cfcfd229682794c455b668eb9bd7bf6159d6bfa45a99ddc2461d7c25  libgit2-glib-0.99.0.1.tar.xz"