blob: 840d742d2652d95d897be12f03148bff9cafd440 (
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
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=libzim
pkgver=4.0.7
pkgrel=2
pkgdesc="Reference implementation of the ZIM file format"
url="https://openzim.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="meson
zlib-dev
xz-dev
libexecinfo
libexecinfo-dev
icu-dev
xapian-core-dev
gtest-dev
python3-dev
cython
"
checkdepends="gtest"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/$pkgname/archive/$pkgver.tar.gz"
build() {
LDFLAGS=-lexecinfo meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
. output
ninja -C output
}
check() {
SKIP_BIG_MEMORY_TEST=1 ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}
sha512sums="5fbb7b112acccefab1fc325258a6353285a7f5e1e002d90ca851e3caf7805f503c6a87e31b7d1131ea3e1564bc02c4a81e196a0f0ab7fd8f708ba650b50f1447 libzim-4.0.7.tar.gz"
|