summaryrefslogtreecommitdiff
path: root/community/zim/APKBUILD
blob: c9ad66f65cd7048bd6520a934f4f97078dde7b21 (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
# Contributor: Adam Nye <adam@spoontech.biz>
# Maintainer:
pkgname=zim
pkgver=0.75.1
pkgrel=1
pkgdesc="Desktop wiki editor"
url="https://zim-wiki.org"
arch="noarch !s390x !riscv64" # adwaita-icon-theme -> librsvg -> rust
license="GPL-2.0-or-later"
depends="python3 py3-gobject3 py3-xdg xdg-utils gtk+3.0"
makedepends="desktop-file-utils font-cantarell"
checkdepends="adwaita-icon-theme xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/zim-desktop-wiki/zim-desktop-wiki/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/zim-desktop-wiki-$pkgver"

build() {
	XDG_RUNTIME_DIR=/tmp \
	python3 setup.py build
}

check() {
	# Disable widgets test module for now as some tests
	# fail because of problems related to system locale.
	cat /dev/null > tests/widgets.py
	XDG_RUNTIME_DIR=/tmp xvfb-run -a python3 test.py --fast
}

package() {
	XDG_RUNTIME_DIR=/tmp \
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -dm755 "$pkgdir"/usr/share/icons
	cp -r xdg/hicolor "$pkgdir"/usr/share/icons
}

sha512sums="
207d40af2342f16ba713a3809b06ddc6656bce22386fcaace65b0e04894218590d4c03b9c65d6eeb3c4edc46e85e103cfcf112e4298be07ba1f126d7732333c5  zim-0.75.1.tar.gz
"