summaryrefslogtreecommitdiff
path: root/community/gitg/APKBUILD
blob: 0fcc0d939de2c82e6fcb11e6e095f6051c7ed881 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gitg
pkgver=41
pkgrel=0
pkgdesc="gitg is the GNOME GUI client to view git repositories"
url="https://wiki.gnome.org/Apps/Gitg"
arch="all"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="
	glib-dev
	gobject-introspection-dev
	gsettings-desktop-schemas-dev
	gspell-dev
	gtk+3.0-dev
	gtksourceview4-dev
	json-glib-dev
	libdazzle-dev
	libgee-dev
	libgit2-glib-dev
	libpeas-dev
	libsecret-dev
	libsoup-dev
	libxml2-dev
	meson
	vala
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gitg/${pkgver%.*}/gitg-$pkgver.tar.xz
	meson-fix-build.patch
	"
# requires being in a git repo, and the aports one is too big (takes forever)
options="!check"

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="
4e8fe0b1ab5302f975f58277e5ae42300a96d20bb1c41426d8c0e058a53420fcca73f75566f593f5aa2882b3a0e1608cdd542bc4f68c731153ba9185972d6f51  gitg-41.tar.xz
1ec57998040b1a54653c1a037a1a70d9635a9366dd796598de764954e6374385762932c5fe8ad55888b99187d5bc165effdd3a4b6922ac6e5d19ad2699f200da  meson-fix-build.patch
"