aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-books/APKBUILD
blob: 39d08f1d75416a6507a9643329f3903911bdfb2e (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
30
31
32
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-books
pkgver=40.0
pkgrel=0
pkgdesc="GNOME Ebook Manager"
url="https://wiki.gnome.org/Apps/Books"
arch="all !s390x !mips !mips64 !riscv64" # limited by gjs and librsvg
license="LGPL-2.0-or-later"
depends="gsettings-desktop-schemas libgepub tracker-miners"
makedepends="meson gjs-dev evince-dev gnome-desktop-dev gtk+3.0-dev glib-dev
	gobject-introspection-dev tracker-dev webkit2gtk-dev libgepub-dev librsvg"
checkdepends="appstream-glib desktop-file-utils"
# Don't conflict with other packages doing a shared link of libgd
sonameprefix="$pkgname:"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-books/${pkgver%.*}/gnome-books-$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="6fb6df65a493c0813cc742c08309d104ef4cc66c21d1a50e6e756824f16eec4350c89b8b7c23de35784e21197649e2390d69850632d279305ed172dfafe5ef41  gnome-books-40.0.tar.xz"