blob: 0ac47ab935f50648c05d459374f16fd656646658 (
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
|
# Maintainer: Self Denial <selfdenial@pm.me>
# Used https://gitlab.archlinux.org/archlinux/packaging/packages/libkiwix as inspiration
pkgname=libkiwix-git
_pkgname="${pkgname%-git}"
pkgver=14.0.0.r17.g27e7840c
pkgrel=1
pkgdesc="Library providing the Kiwix software core"
license=('GPL3')
arch=('x86_64')
provides=('kiwix-lib')
conflicts=('kiwix-lib')
replaces=('kiwix-lib')
depends=('libzim>=9.0.0' 'pugixml' 'xapian-core' 'aria2' 'libmicrohttpd' 'python' 'curl')
makedepends=('git' 'gtest' 'meson' 'mustache')
url='https://github.com/kiwix/libkiwix'
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_pkgname}"
# We want to ignore xapian ABI version mismatches
# https://github.com/openzim/libzim/issues/757
arch-meson build -Dwerror=false -Dcpp_std=c++17
ninja -C build
}
check() {
cd "$srcdir/${_pkgname}/build"
meson test
}
package() {
install -Dm644 "$srcdir/${_pkgname}/COPYING" "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
cd "$srcdir/${_pkgname}/build"
DESTDIR="$pkgdir" ninja install
}
|