2011-05-18 09:20:54 +00:00
|
|
|
# Template build file for 'libwnck2'.
|
|
|
|
pkgname=libwnck2
|
2011-09-01 06:34:31 +00:00
|
|
|
version=2.30.7
|
2014-01-28 09:50:31 +00:00
|
|
|
revision=5
|
|
|
|
wrksrc="${pkgname/2/}-${version}"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-01-28 09:50:31 +00:00
|
|
|
hostmakedepends="pkg-config intltool gdk-pixbuf-devel"
|
2013-04-13 08:15:49 +00:00
|
|
|
makedepends="startup-notification-devel libXres-devel gtk+-devel"
|
2011-05-18 09:20:54 +00:00
|
|
|
short_desc="Library for layout and rendering of text (GTK+2)"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-09-01 06:34:31 +00:00
|
|
|
homepage="http://www.gnome.org/"
|
|
|
|
license="LGPL-2.1"
|
2013-04-13 08:15:49 +00:00
|
|
|
distfiles="${GNOME_SITE}/libwnck/2.30/libwnck-$version.tar.bz2"
|
2011-09-01 06:34:31 +00:00
|
|
|
checksum=8aabbe6c87b89b170dbd6e1577a89d248323da128fff0b3ab673010f0cd6156c
|
2011-05-18 09:20:54 +00:00
|
|
|
|
2014-01-28 09:50:31 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2011-05-18 09:20:54 +00:00
|
|
|
|
2011-11-17 16:38:12 +00:00
|
|
|
post_install() {
|
2011-05-18 09:20:54 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/bin
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libwnck2-devel_package() {
|
2014-01-28 09:50:31 +00:00
|
|
|
depends="gtk+-devel startup-notification-devel libXres-devel ${sourcepkg}>=${version}_${revision}"
|
2013-04-13 08:15:49 +00:00
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2014-01-28 09:50:31 +00:00
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|