34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
# Template file for 'libzim'
|
|
pkgname=libzim
|
|
version=4.0.7
|
|
revision=1
|
|
build_style=meson
|
|
hostmakedepends="pkg-config git"
|
|
makedepends="liblzma-devel $(vopt_if zlib zlib-devel)
|
|
$(vopt_if xapian "xapian-core-devel icu-devel")
|
|
gtest-devel"
|
|
short_desc="Library to read and write ZIM files"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.openzim.org/"
|
|
changelog="https://github.com/openzim/libzim/blob/${version}/ChangeLog"
|
|
distfiles="https://github.com/openzim/libzim/archive/${version}.tar.gz"
|
|
checksum=ede654ffe4ec63aaeb9404010d72e3e6afe6b1dbf34bb0c706a67e094eba4438
|
|
replaces="libzim-tools>=0"
|
|
|
|
build_options="zlib xapian"
|
|
build_options_default="zlib xapian"
|
|
|
|
#Meson doesn't pass the c++ version set in the meson.build to ninja
|
|
CXXFLAGS="-std=c++11"
|
|
|
|
libzim-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}
|
|
$(vopt_if zlib zlib-devel) liblzma-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|