void-packages/srcpkgs/libosmgpsmap/template

43 lines
1.2 KiB
Bash

# Template file for 'libosmgpsmap'
pkgname=libosmgpsmap
version=1.2.0
revision=2
wrksrc="osm-gps-map-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="pkg-config gtk-doc gnome-common"
makedepends="libsoup-devel gtk+3-devel cairo-devel"
short_desc="Gtk+ Widget for Displaying OpenStreetMap tiles"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later"
homepage="http://nzjrs.github.io/osm-gps-map/"
changelog="https://raw.githubusercontent.com/nzjrs/osm-gps-map/master/NEWS"
distfiles="https://github.com/nzjrs/osm-gps-map/releases/download/${version}/osm-gps-map-${version}.tar.gz"
checksum=ddec11449f37b5dffb4bca134d024623897c6140af1f9981a8acc512dbf6a7a5
build_options="gir"
build_options_default="gir"
libosmgpsmap-doc_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - Documentation"
pkg_install() {
vmove usr/share/*doc
}
}
libosmgpsmap-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}