aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apostrophe/APKBUILD
blob: 1505c1e04e9984f6cb54fadbe90c4df5d9ce536d (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
53
54
55
56
57
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=apostrophe
pkgver=2.6.3
pkgrel=3
pkgdesc="distraction free Markdown editor for GNU/Linux made with GTK+"
url="https://gitlab.gnome.org/World/apostrophe"
arch="aarch64 x86_64" # py3-pypandoc
license="GPL-3.0-or-later"
depends="
	font-fira-otf
	gspell
	gtk+3.0
	libhandy1
	py3-cairo
	py3-chardet
	py3-enchant
	py3-gobject3
	py3-levenshtein
	py3-pypandoc
	py3-regex
	py3-setuptools
	webkit2gtk
	"
makedepends="meson gtk+3.0-dev gobject-introspection-dev gspell-dev gettext-dev
	libhandy1-dev sassc"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/apostrophe/-/archive/v$pkgver/apostrophe-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

prepare() {
	default_prepare
	# fix font finding
	sed -i 's|/app/share/fonts/FiraSans-Regular.ttf|/usr/share/fonts/OTF/FiraSans-Regular.otf|' \
		data/media/css/web/base.css
	sed -i 's|/app/share/fonts/FiraMono-Regular.ttf|/usr/share/fonts/OTF/FiraMono-Regular.otf|' \
		data/media/css/web/base.css

}

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="
1820fd609efe4ac0b7babdeb2aa552a72dd9623f4caeb8eb9e638a52a546b76fda5119931d10b630234a595d227ff7090a63503fd9da94d553439b91a03ac876  apostrophe-v2.6.3.tar.gz
"