blob: 140132c4b9845a631e2e1097acefd557e516530c (
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
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=libzim
pkgver=4.0.6
pkgrel=0
pkgdesc="Reference implementation of the ZIM file format"
url="https://openzim.org/"
arch="all"
license="GPL-2.0"
makedepends="meson zlib-dev xz-dev libexecinfo libexecinfo-dev icu-dev xapian-core-dev
gtest gtest-dev python3-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
LDFLAGS=-lexecinfo meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
. output
ninja -C output
}
check() {
ninja -C output test
}
package() {
cd "$builddir"
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="163777ec1e3935b1e71cc30c72a5645c8519592ad30aa544b08fbdfc0f5c50a7d4199d9038028209fa9accc0e2264008aa8931c49e831273ce2b9a6c4062ad37 libzim-4.0.6.tar.gz"
|