summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e615eff8fc0725cbc10b3085e673934c8795d590 (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
# Maintainer: Han Young <hanyoung@protonmail.com>
# Contributor: Yaron de Leeuw < me@jarondl.net >
pkgname=libzim-git
pkgver=1326.ca0c95f
pkgrel=1
pkgdesc="The standard implementation of the ZIM specification - openzim"
arch=('i686' 'x86_64')
url="https://openzim.org/wiki/Libzim"
license=('GPL2')
makedepends=('git' 'meson' 'ninja' 'gtest' 'pkgconf')
depends=('xz' 'gcc-libs' 'zstd' 'icu' 'xapian-core' 'util-linux-libs')
optdepends=('doxygen: build the documentations'
            'python-breathe: build the documentations'
            'python-sphinx: build the documentations'
            'python-exhale: build the documentations')
conflicts=('libzim')
source=("$pkgname"::git+https://github.com/openzim/libzim.git)
md5sums=('SKIP')

# find version according to 
# http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines#Git
pkgver() {
	cd "$pkgname"
	printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$pkgname"
	mkdir build
	meson --prefix=/usr . build
	ninja -C build
}


package() {
	cd "$srcdir/$pkgname"
	sudo ninja -C build install
}