summaryrefslogtreecommitdiff
path: root/community/libgit2-glib/APKBUILD
blob: 5bf4520bf24df571aafd3eef3a847255f4d08e4a (plain)
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
30
31
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgit2-glib
pkgver=1.0.0.1
pkgrel=0
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 --print-errorlogs -C output
}

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

sha512sums="
8e156791783f79d585fa83267a5e14a4a93324fcca75e836478ddd5b5c53d9e827b07a3738c67116478435613639aab0992f32413b9a4de5fc4ff641dd042e80  libgit2-glib-1.0.0.1.tar.xz
"