void-packages/srcpkgs/libgepub/template

35 lines
1012 B
Bash

# Template file for 'libgepub'
pkgname=libgepub
version=0.5.3
revision=1
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config vala-devel $(vopt_if gir gobject-introspection)"
makedepends="webkit2gtk-devel libsoup-devel libxml2-devel libarchive-devel"
short_desc="Library to read epub files using glib"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://live.gnome.org/"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=ab52e1021c55246adb10f3aab4228e0b55f2a2208c8b788e01d24d8bc324c13e
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libgepub-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}