void-packages/srcpkgs/gdl/template

55 lines
1.2 KiB
Text
Raw Normal View History

2013-07-28 01:10:31 +00:00
# Template file for 'gdl'
pkgname=gdl
2014-03-27 16:58:26 +00:00
version=3.12.0
revision=2
2013-07-28 01:10:31 +00:00
build_style=gnu-configure
hostmakedepends="pkg-config intltool glib-devel"
2013-09-26 21:31:46 +00:00
makedepends="libxml2-devel gtk+3-devel"
short_desc="GNOME Docking Library"
2014-03-27 16:58:26 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
2013-07-28 01:10:31 +00:00
license="GPL-2"
homepage="https://developer.gnome.org/gdl/"
2013-09-26 21:31:46 +00:00
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
2014-03-27 16:58:26 +00:00
checksum=4770f959f31ed5e616fe623c284e8dd6136e49902d19b6e37938d34be4f6b88d
2013-07-28 01:10:31 +00:00
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
pre_build() {
sed 's,-I$(includedir),,g' -i gdl/Makefile
}
2013-07-28 01:10:31 +00:00
gdl-devel_package() {
2014-03-27 16:58:26 +00:00
short_desc+=" - development files"
2013-09-26 21:31:46 +00:00
depends="gdl>=${version}"
2013-07-28 01:10:31 +00:00
pkg_install() {
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
2013-07-28 01:10:31 +00:00
vmove usr/include
vmove usr/lib/pkgconfig
2013-09-26 21:31:46 +00:00
vmove "usr/lib/*.so"
2013-07-28 01:10:31 +00:00
}
}
gdl-doc_package() {
2014-03-27 16:58:26 +00:00
short_desc+=" - documentation"
2013-09-26 21:31:46 +00:00
noarch=yes
2013-07-28 01:10:31 +00:00
pkg_install() {
vmove usr/share/gtk-doc
}
}