void-packages/srcpkgs/libgepub/template
2019-05-02 01:12:49 +02:00

38 lines
1.1 KiB
Bash

# Template file for 'libgepub'
pkgname=libgepub
version=0.6.0
revision=3
build_style=meson
build_helper="gir"
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.org>"
license="LGPL-2.1-or-later"
homepage="http://live.gnome.org/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=c78a395cc1d9c57b4485958ed83ffb96ed442750cfafa7797dd6d986b9f7b399
# Package build options
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
arm*-musl) # cannot build w/ gir until #11426 is solved
;;
*) build_options_default="gir"
;;
esac
libgepub-devel_package() {
depends="libarchive-devel libglib-devel libsoup-devel libxml2-devel
webkit2gtk-devel ${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
}
}