void-packages/srcpkgs/libwnck2/template
2018-11-20 13:38:26 -02:00

42 lines
1.2 KiB
Bash

# Template file for 'libwnck2'
pkgname=libwnck2
version=2.30.7
revision=6
wrksrc="${pkgname/2/}-${version}"
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool gdk-pixbuf-devel $(vopt_if gir gobject-introspection)"
makedepends="startup-notification-devel libXres-devel gtk+-devel"
short_desc="Library for layout and rendering of text (GTK+2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org/"
distfiles="${GNOME_SITE}/libwnck/2.30/libwnck-$version.tar.bz2"
checksum=8aabbe6c87b89b170dbd6e1577a89d248323da128fff0b3ab673010f0cd6156c
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
post_install() {
rm -rf ${DESTDIR}/usr/bin
}
libwnck2-devel_package() {
depends="gtk+-devel startup-notification-devel libXres-devel ${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
vmove usr/share/gtk-doc
}
}